selectors.py
changeset 6397 66401ba9332a
parent 6395 30582ba8b368
child 6402 a589df8b9b66
equal deleted inserted replaced
6396:a9e4c51fc1c1 6397:66401ba9332a
   622 
   622 
   623 @objectify_selector
   623 @objectify_selector
   624 @lltrace
   624 @lltrace
   625 def sorted_rset(cls, req, rset=None, **kwargs):
   625 def sorted_rset(cls, req, rset=None, **kwargs):
   626     """Return 1 for sorted result set (e.g. from an RQL query containing an
   626     """Return 1 for sorted result set (e.g. from an RQL query containing an
   627     :ref:ORDERBY clause), with exception that it will return 0 if the rset is
   627     ORDERBY clause), with exception that it will return 0 if the rset is
   628     'ORDERBY FTIRANK(VAR)' (eg sorted by rank value of the has_text index).
   628     'ORDERBY FTIRANK(VAR)' (eg sorted by rank value of the has_text index).
   629     """
   629     """
   630     if rset is None:
   630     if rset is None:
   631         return 0
   631         return 0
   632     selects = rset.syntax_tree().children
   632     selects = rset.syntax_tree().children