Changeset 1662 for WAeUP_SRP/trunk/skins/waeup_academics
- Timestamp:
- 30 Mar 2007, 08:11:21 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/getCertificateInfo.py
r1632 r1662 12 12 return Info about a Certificate 13 13 """ 14 def 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 14 23 request = context.REQUEST 15 24 … … 33 42 row['url'] = l.absolute_url() 34 43 items.append(row) 44 items.sort(cmp_id) 35 45 info['items'] = items 36 46 return info
Note: See TracChangeset for help on using the changeset viewer.