示例#1
0
 def __init__(self, *args, **kwargs):
     _DBWorkflow.__init__(self, *args, **kwargs)
     self.objects = {}
     self.tmp_id = IdScope(1, {
         DBAbstraction.vtType: DBModule.vtType,
         DBGroup.vtType: DBModule.vtType
     })
示例#2
0
 def update_version(old_obj, trans_dict, new_obj=None):
     if new_obj is None:
         new_obj = DBWorkflow()
     new_obj = _DBWorkflow.update_version(old_obj, trans_dict, new_obj)
     new_obj.update_id_scope()
     new_obj.build_index()
     return new_obj
示例#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.build_index()
     cp.tmp_id = copy.copy(self.tmp_id)
     return cp        
示例#4
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        
示例#5
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
示例#6
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        
示例#7
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
示例#8
0
 def __init__(self, *args, **kwargs):
     _DBWorkflow.__init__(self, *args, **kwargs)
     self.objects = {}
     self.tmp_id = IdScope(1,
                           {DBAbstraction.vtType: DBModule.vtType,
                            DBGroup.vtType: DBModule.vtType})
示例#9
0
 def __init__(self, *args, **kwargs):
     _DBWorkflow.__init__(self, *args, **kwargs)
     self.objects = {}
     self.tmp_id = IdScope(1)
示例#10
0
    def __init__(self, *args, **kwargs):
	_DBWorkflow.__init__(self, *args, **kwargs)
	self.objects = {}
        self.tmp_id = IdScope(1)