##// END OF EJS Templates
baseset: fix isascending and isdescending...
Pierre-Yves David -
r22828:966860f7 default
parent child Browse files
Show More
@@ -2411,13 +2411,13 b' class baseset(abstractsmartset):'
2411 """Returns True if the collection is ascending order, False if not.
2411 """Returns True if the collection is ascending order, False if not.
2412
2412
2413 This is part of the mandatory API for smartset."""
2413 This is part of the mandatory API for smartset."""
2414 return False
2414 return self._ascending is not None and self._ascending
2415
2415
2416 def isdescending(self):
2416 def isdescending(self):
2417 """Returns True if the collection is descending order, False if not.
2417 """Returns True if the collection is descending order, False if not.
2418
2418
2419 This is part of the mandatory API for smartset."""
2419 This is part of the mandatory API for smartset."""
2420 return False
2420 return self._ascending is not None and not self._ascending
2421
2421
2422 def first(self):
2422 def first(self):
2423 if self:
2423 if self:
General Comments 0
You need to be logged in to leave comments. Login now