Returns the result order by clauses :rtype: str or None
(self)
| 797 | return None |
| 798 | |
| 799 | def get_order(self): |
| 800 | """ Returns the result order by clauses |
| 801 | |
| 802 | :rtype: str or None |
| 803 | """ |
| 804 | # first get the filtered attributes in order as they must appear |
| 805 | # in the order_by first |
| 806 | if not self.has_order: |
| 807 | return None |
| 808 | |
| 809 | return ','.join(['{} {}'.format(attribute, direction or '').strip() |
| 810 | for attribute, direction in self._order_by.items()]) |
| 811 | |
| 812 | def get_selects(self): |
| 813 | """ Returns the result select clause |