예제 #1
0
 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
예제 #2
0
 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)
예제 #3
0
 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)