当前位置: 首页>>代码示例>>Python>>正文


Python auto_gen.DBWorkflow类代码示例

本文整理汇总了Python中auto_gen.DBWorkflow的典型用法代码示例。如果您正苦于以下问题:Python DBWorkflow类的具体用法?Python DBWorkflow怎么用?Python DBWorkflow使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


在下文中一共展示了DBWorkflow类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: update_version

 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
开发者ID:AnyarInc,项目名称:VisTrails,代码行数:7,代码来源:workflow.py

示例2: do_copy

 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        
开发者ID:AnyarInc,项目名称:VisTrails,代码行数:7,代码来源:workflow.py

示例3: do_copy

 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        
开发者ID:cjh1,项目名称:VisTrails,代码行数:9,代码来源:workflow.py

示例4: __copy__

 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
开发者ID:hjanime,项目名称:VisTrails,代码行数:9,代码来源:workflow.py

示例5: __init__

 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})
开发者ID:AnyarInc,项目名称:VisTrails,代码行数:6,代码来源:workflow.py

示例6: __init__

    def __init__(self, *args, **kwargs):
	_DBWorkflow.__init__(self, *args, **kwargs)
	self.objects = {}
        self.tmp_id = IdScope(1)
开发者ID:gzt200361,项目名称:ThirdParty-2.0.0,代码行数:4,代码来源:workflow.py


注:本文中的auto_gen.DBWorkflow类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。