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_aaua/getPaymentsFolderInfo.py

    r3813 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
     
    126117    payments.append(row)
    127118
    128 payments.sort(cmp_id)
     119payments.sort(cmp=lambda x,y: cmp(x['trans_ref'],y['trans_ref']))
    129120info['payments'] = payments
    130121return info
Note: See TracChangeset for help on using the changeset viewer.