equal
deleted
inserted
replaced
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) |