Changeset 1724 for WAeUP_SRP/trunk/skins/waeup_academics
- Timestamp:
- 30 Apr 2007, 15:37:48 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/trunk/skins/waeup_academics/getFacultiesInfo.py
r913 r1724 13 13 """ 14 14 request = context.REQUEST 15 def cmp_id(a,b): 16 s1 = "%(id)s" % a 17 s2 = "%(id)s" % b 18 if s1 == s2: 19 return 0 20 if s1 > s2: 21 return 1 22 return -1 15 23 16 24 wf = context.portal_workflow … … 32 40 row['is_editable'] = mtool.checkPermission('Modify portal content', fo) 33 41 items.append(row) 42 items.sort(cmp_id) 34 43 info['items'] = items 35 44 return info
Note: See TracChangeset for help on using the changeset viewer.