示例#1
0
 def update_sub_item_execs(old_obj, translate_dict, do_loop_execs=True):
     new_item_execs = []
     for obj in old_obj.db_module_execs:
         new_item_execs.append(DBModuleExec.update_version(obj, translate_dict))
     for obj in old_obj.db_group_execs:
         new_item_execs.append(DBGroupExec.update_version(obj, translate_dict))
     if do_loop_execs:
         for obj in old_obj.db_loop_execs:
             new_item_execs.append(DBLoopExec.update_version(obj, translate_dict))
     return new_item_execs
示例#2
0
 def update_item_execs(old_obj, translate_dict):
     new_item_execs = []
     for obj in old_obj.db_items:
         if obj.vtType == 'module_exec':
             new_item_execs.append(DBModuleExec.update_version(obj, translate_dict))
         elif obj.vtType == 'group_exec':
             new_item_execs.append(DBGroupExec.update_version(obj, translate_dict))
         elif obj.vtType == 'loop_exec':
             new_item_execs.append(DBLoopExec.update_version(obj, translate_dict))
     return new_item_execs