def objectMap(self, data={}): """Create an object map from the data """ om = ObjectMap(data) om.compname = self.compname om.modname = self.modname om.classname = self.classname return om
def objectMap(self, data={}): """Create an object map from the data """ om = ObjectMap(data) om.compname = self.compname om.modname = self.modname om.classname = self.classname return om
def _new_objmap(self, objmap): # Create a new empty objmap based on the suppied one, with all # structural properties carried over, but no data, no _add, and no # _remove. new_objmap = ObjectMap() if objmap.modname: new_objmap.modname = objmap.modname if objmap.compname: new_objmap.compname = objmap.compname if objmap.classname: new_objmap.classname = objmap.classname if hasattr(objmap, 'relname'): new_objmap.relname = objmap.relname if hasattr(objmap, 'id'): new_objmap.id = objmap.id return new_objmap
def _new_objmap(self, objmap): # Create a new empty objmap based on the suppied one, with all # structural properties carried over, but no data, no _add, and no # _remove. new_objmap = ObjectMap() if objmap.modname: new_objmap.modname = objmap.modname if objmap.compname: new_objmap.compname = objmap.compname if objmap.classname: new_objmap.classname = objmap.classname if hasattr(objmap, 'relname'): new_objmap.relname = objmap.relname if hasattr(objmap, 'id'): new_objmap.id = objmap.id return new_objmap