Beispiel #1
0
    def update_items(old_obj, translate_dict):
        new_items = []
        for obj in old_obj.db_item_execs:
            if obj.vtType == 'module_exec':
                new_items.append(DBModuleExec.update_version(obj, translate_dict))
            elif obj.vtType == 'group_exec':
                new_items.append(DBGroupExec.update_version(obj, translate_dict))
            elif obj.vtType == 'loop_exec':
                new_items.append(DBLoopExec.update_version(obj, translate_dict))

        return new_items
Beispiel #2
0
    def update_items(old_obj, translate_dict):
        new_items = []
        for obj in old_obj.db_item_execs:
            if obj.vtType == 'module_exec':
                new_items.append(DBModuleExec.update_version(obj, translate_dict))
            elif obj.vtType == 'group_exec':
                new_items.append(DBGroupExec.update_version(obj, translate_dict))
            elif obj.vtType == 'loop_exec':
                new_items.append(DBLoopExec.update_version(obj, translate_dict))

        return new_items
Beispiel #3
0
 def update_exec_items(which, old_obj, translate_dict, catch_loops=False):
     new_items = []
     for obj in old_obj.db_item_execs:
         if catch_loops and obj.vtType == 'loop_exec':
             debug.warning("Cannot translate loop_exec inside of loop_exec")
         if obj.vtType == which:
             if obj.vtType == 'module_exec':
                 new_items.append(DBModuleExec.update_version(obj, translate_dict))
             elif obj.vtType == 'group_exec':
                 new_items.append(DBGroupExec.update_version(obj, translate_dict))
             elif obj.vtType == 'loop_exec':
                 new_items.append(DBLoopExec.update_version(obj, translate_dict))
     return new_items
Beispiel #4
0
 def update_exec_items(which, old_obj, translate_dict, catch_loops=False):
     new_items = []
     for obj in old_obj.db_item_execs:
         if catch_loops and obj.vtType == 'loop_exec':
             debug.warning("Cannot translate loop_exec inside of loop_exec")
         if obj.vtType == which:
             if obj.vtType == 'module_exec':
                 new_items.append(DBModuleExec.update_version(obj, translate_dict))
             elif obj.vtType == 'group_exec':
                 new_items.append(DBGroupExec.update_version(obj, translate_dict))
             elif obj.vtType == 'loop_exec':
                 new_items.append(DBLoopExec.update_version(obj, translate_dict))
     return new_items
Beispiel #5
0
 def update_items(old_obj, translate_dict):
     new_items = []
     for obj in old_obj.db_module_execs:
         new_items.append(DBModuleExec.update_version(obj, translate_dict))
     return new_items
Beispiel #6
0
 def update_items(old_obj, translate_dict):
     new_items = []
     for obj in old_obj.db_module_execs:
         new_items.append(DBModuleExec.update_version(obj, translate_dict))
     return new_items