Ignore:
Timestamp:
21 Jan 2009, 07:59:00 (16 years ago)
Author:
Henrik Bettermann
Message:
  • fix sort order of payment objects
  • reload passport pictures in Okene
File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/getPaymentsFolderInfo.py

    r3863 r3865  
    2626    def set_trace():
    2727        pass
    28 
    29 def cmp_id(a,b):
    30     s1 = "%(id)s" % a
    31     s2 = "%(id)s" % b
    32     if s1 == s2:
    33         return 0
    34     if s1 > s2:
    35         return 1
    36     return -1
    3728
    3829import DateTime
     
    135126    payments.append(row)
    136127
    137 payments.sort(cmp_id)
     128payments.sort(cmp=lambda x,y: cmp(x['trans_ref'],y['trans_ref']))
    138129info['payments'] = payments
    139130return info
Note: See TracChangeset for help on using the changeset viewer.