Exemple #1
0
def add_app_inv(obj, app):
    for inv, loc in obj.inventor_list:
        loc = fixid(loc)
        inv = fixid(inv)
        inv = schema.App_RawInventor(**inv)
        loc = schema.App_RawLocation(**loc)
        appsession.merge(loc)
        inv.rawlocation = loc
        app.rawinventors.append(inv)
Exemple #2
0
def add_app_asg(obj, app):
    for asg, loc in obj.assignee_list:
        loc = fixid(loc)
        asg = fixid(asg)
        asg = schema.App_RawAssignee(**asg)
        loc = schema.App_RawLocation(**loc)
        appsession.merge(loc)
        asg.rawlocation = loc
        app.rawassignees.append(asg)