示例#1
0
 def __copy__(self):
     cp = _DBWorkflow.__copy__(self)
     cp.__class__ = DBWorkflow
     # need to go through and reset the index to the copied objects
     cp.objects = {}
     for (child, _, _) in cp.db_children():
         cp.addToIndex(child)
     cp.tmp_id = copy.copy(self.tmp_id)
     return cp
示例#2
0
 def __copy__(self):
     cp = _DBWorkflow.__copy__(self)
     cp.__class__ = DBWorkflow
     # need to go through and reset the index to the copied objects
     cp.objects = {}
     for (child, _, _) in cp.db_children():
         cp.addToIndex(child)
     cp.tmp_id = copy.copy(self.tmp_id)
     return cp