def __init__(self, *args, **kwargs):
     DBAbstractionRef.__init__(self, *args, **kwargs)
     if self.id is None:
         self.id = -1
     self.portVisible = set()
     self._registry = None
     self.abstraction = None
 def do_copy(self, new_ids=False, id_scope=None, id_remap=None):
     cp = DBAbstractionRef.do_copy(self, new_ids, id_scope, id_remap)
     cp.__class__ = AbstractionModule
     cp.portVisible = copy.copy(self.portVisible)
     cp._registry = self._registry
     cp.abstraction = self.abstraction
     return cp