Ejemplo n.º 1
0
def translateVistrail(_vistrail):
    def update_workflow(old_obj, translate_dict):
        return DBWorkflow.update_version(old_obj.db_workflow, translate_dict)
    translate_dict = {'DBGroup': {'workflow': update_workflow}}
    vistrail = DBVistrail.update_version(_vistrail, translate_dict)
    vistrail.db_version = '0.9.5'
    return vistrail
Ejemplo n.º 2
0
def translateVistrail(_vistrail):
    def update_workflow(old_obj, translate_dict):
        return DBWorkflow.update_version(old_obj.db_workflow, translate_dict)
    translate_dict = {'DBGroup': {'workflow': update_workflow}}
    vistrail = DBVistrail.update_version(_vistrail, translate_dict)
    vistrail.db_version = '0.9.5'
    return vistrail
Ejemplo n.º 3
0
def translateVistrail(_vistrail):
    def update_signature(old_obj, translate_dict):
        return old_obj.db_spec

    def update_optional(old_obj, translate_dict):
        return 0

    def update_sort_key(old_obj, translate_dict):
        return -1

    def update_sigstring(old_obj, translate_dict):
        return old_obj.db_spec

    def update_workflow(old_obj, translate_dict):
        return DBWorkflow.update_version(old_obj.db_workflow, translate_dict)

    translate_dict = {
        'DBPortSpec': {
            'sigstring': update_sigstring,
            'optional': update_optional,
            'sort_key': update_sort_key
        },
        'DBPort': {
            'signature': update_signature
        },
        'DBGroup': {
            'workflow': update_workflow
        }
    }

    # pass DBVistrail because domain contains enriched version of the auto_gen
    vistrail = DBVistrail.update_version(_vistrail, translate_dict)
    vistrail.db_version = '0.9.5'
    return vistrail
Ejemplo n.º 4
0
def translateVistrail(_vistrail):
    def update_signature(old_obj, translate_dict):
        return old_obj.db_spec
    def update_optional(old_obj, translate_dict):
        return 0
    def update_sort_key(old_obj, translate_dict):
        return -1
    def update_sigstring(old_obj, translate_dict):
        return old_obj.db_spec
    def update_workflow(old_obj, translate_dict):
        return DBWorkflow.update_version(old_obj.db_workflow, translate_dict)

    translate_dict = {'DBPortSpec': {'sigstring': update_sigstring,
                                     'optional': update_optional,
                                     'sort_key': update_sort_key},
                      'DBPort': {'signature': update_signature},
                      'DBGroup': {'workflow': update_workflow}}

    # pass DBVistrail because domain contains enriched version of the auto_gen
    vistrail = DBVistrail.update_version(_vistrail, translate_dict)
    vistrail.db_version = '0.9.5'
    return vistrail