def create_serialized_user_object(self, obj): klass = self.project.find_object(Class, class_name(obj), module_name(obj)) if klass: serialized = UserObject(obj, klass) klass.add_user_object(serialized) return serialized
def __init__(self, obj): super(SerializedObject, self).__init__() self.human_readable_id = get_human_readable_id(obj) self.module_name = module_name(obj) self.type_name = get_type_name(obj)