server/querier.py
changeset 321 247947250382
parent 0 b97547f5f1fa
child 389 aa180daa2bd4
equal deleted inserted replaced
320:e2647e72afe7 321:247947250382
    42 def var_kwargs(restriction, args):
    42 def var_kwargs(restriction, args):
    43     varkwargs = {}
    43     varkwargs = {}
    44     for rel in restriction.iget_nodes(Relation):
    44     for rel in restriction.iget_nodes(Relation):
    45         cmp = rel.children[1]
    45         cmp = rel.children[1]
    46         if rel.r_type == 'eid' and cmp.operator == '=' and \
    46         if rel.r_type == 'eid' and cmp.operator == '=' and \
    47                 isinstance(cmp.children[0], Constant) and \
    47                isinstance(cmp.children[0], Constant) and \
    48                 cmp.children[0].type == 'Substitute':
    48                cmp.children[0].type == 'Substitute':
    49             varkwargs[rel.children[0].name] = typed_eid(cmp.children[0].eval(args))
    49             varkwargs[rel.children[0].name] = typed_eid(cmp.children[0].eval(args))
    50     return varkwargs
    50     return varkwargs
    51 
    51 
    52 def check_no_password_selected(rqlst):
    52 def check_no_password_selected(rqlst):
    53     """check that Password entities are not selected"""
    53     """check that Password entities are not selected"""