intficpy/serializer.py
def populate_contains(self, root_obj, dict_in):
        """
        Uses a recursive depth first search to place all items in the correct location
        root_obj is the object to populate, dict_in is the dictionary to read from
        """
        for key in dict_in:
            for obj_data in dict_in[key]:
                if not obj_data["placed"]:
                    found_obj = self.add_thing_by_ix(root_obj, key)
                    self.empty_contains(found_obj)
                    obj_data["placed"] = True
                    self.populate_contains(found_obj, obj_data["contains"])

        Uses a recursive depth first search to place all items in the correct location
        root_obj is the object to populate, dict_in is the dictionary to read from
        
Uses a recursive depth first search to place all items in the correct location
root_obj is the object to populate, dict_in is the dictionary to read from
Uses a recursive depth first search to place all items in the correct location root_obj is the object to populate dict_in is the dictionary to read from
def populate_contains(self, root_obj, dict_in):
        for key in dict_in:
            for obj_data in dict_in[key]:
                if not obj_data["placed"]:
                    found_obj = self.add_thing_by_ix(root_obj, key)
                    self.empty_contains(found_obj)
                    obj_data["placed"] = True
                    self.populate_contains(found_obj, obj_data["contains"])
def populate_contains ( self , root_obj , dict_in ) : for key in dict_in : for obj_data in dict_in [ key ] : if not obj_data [ "placed" ] : found_obj = self . add_thing_by_ix ( root_obj , key ) self . empty_contains ( found_obj ) obj_data [ "placed" ] = True self . populate_contains ( found_obj , obj_data [ "contains" ] )
Uses a recursive depth first search to place all items in the correct location
root_obj is the object to populate, dict_in is the dictionary to read from
Uses a recursive depth first search to place all items in the correct location root_obj is the object to populate dict_in is the dictionary to read from
"""
        Uses a recursive depth first search to place all items in the correct location
        root_obj is the object to populate, dict_in is the dictionary to read from
        """
self
root_obj
dict_in