Exemple #1
0
 def do_copy(self, new_ids=False, id_scope=None, id_remap=None):
     cp = _DBWorkflow.do_copy(self, new_ids, id_scope, id_remap)
     cp.__class__ = DBWorkflow
     # need to go through and reset the index to the copied objects
     cp.build_index()
     cp.tmp_id = copy.copy(self.tmp_id)
     return cp        
Exemple #2
0
 def do_copy(self, new_ids=False, id_scope=None, id_remap=None):
     cp = _DBWorkflow.do_copy(self, new_ids, id_scope, id_remap)
     cp.__class__ = DBWorkflow
     # need to go through and reset the index to the copied objects
     cp.objects = {}
     for (child, _, _) in cp.db_children():
         cp.add_to_index(child)
     cp.tmp_id = copy.copy(self.tmp_id)
     return cp        
Exemple #3
0
 def do_copy(self, new_ids=False, id_scope=None, id_remap=None):
     cp = _DBWorkflow.do_copy(self, new_ids, id_scope, id_remap)
     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