def add_inv(obj, pat): for inv, loc in obj.inventor_list: inv = fixid(inv) loc = fixid(loc) inv = schema.RawInventor(**inv) loc = schema.RawLocation(**loc) grantsession.merge(loc) inv.rawlocation = loc pat.rawinventors.append(inv)
def add_asg(obj, pat): for asg, loc in obj.assignee_list: asg = fixid(asg) loc = fixid(loc) asg = schema.RawAssignee(**asg) loc = schema.RawLocation(**loc) grantsession.merge(loc) asg.rawlocation = loc pat.rawassignees.append(asg)