Changeset 1661 for WAeUP_SRP/trunk/skins/waeup_epayment
- Timestamp:
- 30 Mar 2007, 08:10:44 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py
r1634 r1661 14 14 #import logging 15 15 #logger = logging.getLogger('Skins.getPaymentsFolderInfo') 16 def cmp_id(a,b): 17 s1 = "%(id)s" % a 18 s2 = "%(id)s" % b 19 if s1 == s2: 20 return 0 21 if s1 > s2: 22 return 1 23 return -1 16 24 17 25 import DateTime … … 63 71 payments.append(row) 64 72 65 73 payments.sort(cmp_id) 66 74 info['payments'] = payments 67 75 return info
Note: See TracChangeset for help on using the changeset viewer.