server/rqlannotation.py
branchstable
changeset 4721 8f63691ccb7f
parent 4719 aaed3f813ef8
child 5004 4cc020ee70e2
child 5421 8167de96c523
equal deleted inserted replaced
4720:ddf4f19eb07a 4721:8f63691ccb7f
   128     rqlst.need_distinct = need_distinct
   128     rqlst.need_distinct = need_distinct
   129     return has_text_query
   129     return has_text_query
   130 
   130 
   131 
   131 
   132 
   132 
   133 class CantSelectPrincipal(Exception): pass
   133 class CantSelectPrincipal(Exception):
       
   134     """raised when no 'principal' variable can be found"""
   134 
   135 
   135 def _select_principal(sqlscope, relations, _sort=lambda x:x):
   136 def _select_principal(sqlscope, relations, _sort=lambda x:x):
   136     """given a list of rqlst relations, select one which will be used to
   137     """given a list of rqlst relations, select one which will be used to
   137     represent an invariant variable (e.g. using on extremity of the relation
   138     represent an invariant variable (e.g. using on extremity of the relation
   138     instead of the variable's type table
   139     instead of the variable's type table