- Timestamp:
- 04/17/07 00:18:57 (18 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/ldapstorage.py
r3167 r3168 1583 1583 orderby = [] 1584 1584 for orderkey in ordering : 1585 # Create ordering hints, ignoring unknown fields 1585 1586 if orderkey.startswith("-") : 1586 orderby.append((-1, fieldindexes[orderkey[1:]])) 1587 index = fieldindexes.get(orderkey[1:]) 1588 if index is not None : 1589 orderby.append((-1, index)) 1587 1590 elif orderkey.startswith("+") : 1588 orderby.append((+1, fieldindexes[orderkey[1:]])) 1591 index = fieldindexes.get(orderkey[1:]) 1592 if index is not None : 1593 orderby.append((+1, index)) 1589 1594 else : 1590 orderby.append((+1, fieldindexes[orderkey])) 1595 index = fieldindexes.get(orderkey) 1596 if index is not None : 1597 orderby.append((+1, index)) 1591 1598 1592 1599 def compare(x, y, orderby=orderby) :