Exemplo n.º 1
0
 def do_copy(self, new_ids=False, id_scope=None, id_remap=None):
     cp = _DBAbstraction.do_copy(self, new_ids, id_scope, id_remap)
     cp.__class__ = DBAbstraction
     # need to go through and reset the index to the copied objects
     cp.idScope = copy.copy(self.idScope)
     return cp
Exemplo n.º 2
0
 def __init__(self, *args, **kwargs):
     _DBAbstraction.__init__(self, *args, **kwargs)
     self.idScope = IdScope(
         remap={DBAbstractionRef.vtType: DBModule.vtType})
     self.idScope.setBeginId('action', 1)
Exemplo n.º 3
0
 def do_copy(self, new_ids=False, id_scope=None, id_remap=None):
     cp = _DBAbstraction.do_copy(self, new_ids, id_scope, id_remap)
     cp.__class__ = DBAbstraction
     # need to go through and reset the index to the copied objects
     cp.idScope = copy.copy(self.idScope)
     return cp
Exemplo n.º 4
0
 def __init__(self, *args, **kwargs):
     _DBAbstraction.__init__(self, *args, **kwargs)
     self.idScope = IdScope()
     self.idScope.setBeginId('action', 1)
Exemplo n.º 5
0
 def __init__(self, *args, **kwargs):
     _DBAbstraction.__init__(self, *args, **kwargs)
     self.idScope = IdScope(remap={DBAbstractionRef.vtType: DBModule.vtType})
     self.idScope.setBeginId('action', 1)
Exemplo n.º 6
0
 def __init__(self, *args, **kwargs):
     _DBAbstraction.__init__(self, *args, **kwargs)
     self.idScope = IdScope()
     self.idScope.setBeginId('action', 1)