示例#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})
 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)
    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