Ignore:
Timestamp:
1 Dec 2007, 12:42:28 (17 years ago)
Author:
joachim
Message:

sort by title

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_student/getStudentFolderInfo.py

    r2831 r2837  
    1111"""
    1212return Info about the current Student
     13try:
     14    from Products.zdb import set_trace
     15except:
     16    def set_trace():
     17        pass
    1318"""
    1419import DateTime
     
    126131    row = {}
    127132    row['id'] = subobject.getId()
    128     row['title'] = subobject.Title
     133    row['title'] = subobject.Title()
    129134    url = row['url'] = subobject.absolute_url()
    130135    row['type'] = subobject.portal_type
     
    142147    items.append(row)
    143148#logger.info("listtime %f" % (DateTime.DateTime().timeTime() - starttime))
     149#set_trace()
    144150items.sort(cmp=lambda x,y: cmp( x['title'],y['title']))
    145151info['items'] = items
Note: See TracChangeset for help on using the changeset viewer.