Ignore:
Timestamp:
30 Mar 2007, 08:11:21 (18 years ago)
Author:
joachim
Message:

fix for #145

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_academics/getCertificateInfo.py

    r1632 r1662  
    1212return Info about a Certificate
    1313"""
     14def cmp_id(a,b):
     15    s1 = "%(id)s" % a
     16    s2 = "%(id)s" % b
     17    if s1 == s2:
     18        return 0
     19    if s1 > s2:
     20        return 1
     21    return -1
     22
    1423request = context.REQUEST
    1524
     
    3342    row['url'] = l.absolute_url()
    3443    items.append(row)
     44items.sort(cmp_id)
    3545info['items'] = items
    3646return info
Note: See TracChangeset for help on using the changeset viewer.