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