예제 #1
0
파일: log.py 프로젝트: Nikea/VisTrails
 def __init__(self, *args, **kwargs):
     _DBLog.__init__(self, *args, **kwargs)
     self.id_scope = IdScope(1,
                             {DBLoopExec.vtType: 'item_exec',
                              DBModuleExec.vtType: 'item_exec',
                              DBGroupExec.vtType: 'item_exec',
                              DBAbstraction.vtType: DBModule.vtType,
                              DBGroup.vtType: DBModule.vtType})
예제 #2
0
 def __init__(self, *args, **kwargs):
     _DBLog.__init__(self, *args, **kwargs)
     self.id_scope = IdScope(1,
                             {DBLoopExec.vtType: 'item_exec',
                              DBModuleExec.vtType: 'item_exec',
                              DBGroupExec.vtType: 'item_exec',
                              DBAbstraction.vtType: DBModule.vtType,
                              DBGroup.vtType: DBModule.vtType})
예제 #3
0
 def update_version(old_obj, trans_dict, new_obj=None):
     if new_obj is None:
         new_obj = DBLog()
     new_obj = _DBLog.update_version(old_obj, trans_dict, new_obj)
     new_obj.update_id_scope()
     return new_obj
예제 #4
0
    def do_copy(self, new_ids=False, id_scope=None, id_remap=None):
        cp = _DBLog.do_copy(self, new_ids, id_scope, id_remap)
        cp.__class__ = DBLog
        cp.id_scope = copy.copy(self.id_scope)

        return cp
예제 #5
0
 def __init__(self, *args, **kwargs):
     _DBLog.__init__(self, *args, **kwargs)
     self.id_scope = IdScope(1, {DBAbstractionRef.vtType: DBModule.vtType})
예제 #6
0
 def do_copy(self, new_ids=False, id_scope=None, id_remap=None):
     cp = _DBLog.do_copy(self, new_ids, id_scope, id_remap)
     cp.__class__ = DBLog
     cp.id_scope = copy.copy(self.id_scope)
예제 #7
0
    def __init__(self, *args, **kwargs):
	_DBLog.__init__(self, *args, **kwargs)
        self.id_scope = IdScope(1,
                              {DBAbstractionRef.vtType: DBModule.vtType})
예제 #8
0
파일: log.py 프로젝트: hjanime/VisTrails
 def update_version(old_obj, trans_dict, new_obj=None):
     if new_obj is None:
         new_obj = DBLog()
     new_obj = _DBLog.update_version(old_obj, trans_dict, new_obj)
     new_obj.update_id_scope()
     return new_obj