- Timestamp:
- 21 Jan 2009, 07:59:00 (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py
r3863 r3865 26 26 def set_trace(): 27 27 pass 28 29 def cmp_id(a,b):30 s1 = "%(id)s" % a31 s2 = "%(id)s" % b32 if s1 == s2:33 return 034 if s1 > s2:35 return 136 return -137 28 38 29 import DateTime … … 135 126 payments.append(row) 136 127 137 payments.sort(cmp _id)128 payments.sort(cmp=lambda x,y: cmp(x['trans_ref'],y['trans_ref'])) 138 129 info['payments'] = payments 139 130 return info
Note: See TracChangeset for help on using the changeset viewer.