#NEWLINE# @ staticmethod #NEWLINE# def from_obj( object_obj , obj = None ) : #NEWLINE# #INDENT# if ( not object_obj ) : #NEWLINE# #INDENT# return None #NEWLINE# #UNINDENT# if ( not obj ) : #NEWLINE# #INDENT# obj = Object ( ) #NEWLINE# #UNINDENT# obj . id_ = object_obj . id #NEWLINE# obj . idref = obj . idref #NEWLINE# obj . properties = ObjectProperties . from_obj ( object_obj . Properties ) #NEWLINE# obj . domain_specific_object_properties = DomainSpecificObjectProperties . from_obj ( object_obj . Domain_Specific_Object_Properties ) #NEWLINE# rel_objs = object_obj . Related_Objects #NEWLINE# if rel_objs : #NEWLINE# #INDENT# obj . related_objects = [ RelatedObject . from_obj ( x ) for x in rel_objs . Related_Object ] #NEWLINE# #UNINDENT# if obj . id_ : #NEWLINE# #INDENT# cybox . utils . cache_put ( obj ) #NEWLINE# #UNINDENT# return obj