server/querier.py
branchstable
changeset 6128 fbb8398f80dc
parent 5989 099d46422f5a
child 6129 fea746b60093
equal deleted inserted replaced
6127:747e423093fc 6128:fbb8398f80dc
   420                 restricted_vars.update(localcheck)
   420                 restricted_vars.update(localcheck)
   421                 localchecks.setdefault(tuple(localcheck.iteritems()), []).append(solution)
   421                 localchecks.setdefault(tuple(localcheck.iteritems()), []).append(solution)
   422         # raise Unautorized exception if the user can't access to any solution
   422         # raise Unautorized exception if the user can't access to any solution
   423         if not newsolutions:
   423         if not newsolutions:
   424             raise Unauthorized('\n'.join(msgs))
   424             raise Unauthorized('\n'.join(msgs))
   425         rqlst.set_possible_types(newsolutions)
   425         if msgs:
       
   426             # (else solutions have not been modified)
       
   427             rqlst.set_possible_types(newsolutions)
   426         return localchecks, restricted_vars
   428         return localchecks, restricted_vars
   427 
   429 
   428     def finalize(self, select, solutions, insertedvars):
   430     def finalize(self, select, solutions, insertedvars):
   429         rqlst = Union()
   431         rqlst = Union()
   430         rqlst.append(select)
   432         rqlst.append(select)