當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。