Exemplo n.º 1
0
def translateLog(_log):
    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

    translate_dict = {'DBWorkflowExec': {'items': update_items}}
    log = DBLog.update_version(_log, translate_dict)
    log.db_version = '0.9.5'
    return log
def translateLog(_log):
    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

    translate_dict = {"DBWorkflowExec": {"items": update_items}}
    log = DBLog.update_version(_log, translate_dict)
    log.db_version = "0.9.5"
    return log
Exemplo n.º 3
0
def translateLog(_log):
    translate_dict = {}
    log = DBLog.update_version(_log, translate_dict)
    log.db_version = '0.9.5'
    return log
def translateLog(_log):
    translate_dict = {}
    log = DBLog.update_version(_log, translate_dict)
    log.db_version = '0.9.5'
    return log