code: def get_object_data(obj):
      
  
      model = SuperModel(obj)
      try:
          data = model.to_dict()
      except Exception as exc:
          logger.error("Failed to get schema data for {}: {}"
                       .format(repr(obj), str(exc)))
          data = {}
  
      return data
docs: Get object schema data
  
      NOTE: We RAM cache this data because it should only change when the object
      was modified!
  
      XXX: We need to set at least the modification date when we set fields in
      Ajax Listing when we take a snapshot there!
  
      :param obj: Content object
      :returns: Dictionary of extracted schema data