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

    r3783 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
     
    127118
    128119payments.sort(cmp_id)
    129 info['payments'] = payments
     120payments.sort(cmp=lambda x,y: cmp(x['trans_ref'],y['trans_ref']))
    130121return info
    131122
Note: See TracChangeset for help on using the changeset viewer.