Ignore:
Timestamp:
30 Apr 2007, 15:37:48 (18 years ago)
Author:
joachim
Message:

improve or fix id_rename and catalog handling

File:
1 edited

Legend:

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

    r913 r1724  
    1313"""
    1414request = context.REQUEST
     15def 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
    1523
    1624wf = context.portal_workflow
     
    3240    row['is_editable'] = mtool.checkPermission('Modify portal content', fo)
    3341    items.append(row)
     42items.sort(cmp_id)
    3443info['items'] = items
    3544return info
Note: See TracChangeset for help on using the changeset viewer.