Re: [Zope] Sorting a list of folders based upon PART of the folder id
18 Jun
2003
18 Jun
'03
4:35 p.m.
Thanks to Max and others, I have gotten closer to the final goal. My apologies to those who might be bored by the question... I have defined the Python Script "dsuJudgeSort" (with parameter jlist) as: decorated = [(o.getId()[-1], o.getId()[0]) for o in jlist] decorated.sort(); return [d[-1] for d in decorated] And a ZPT with <table tal:define="sorted_objects python:container['dsuJudgeSort'](here.objectValues('Plone Folder'));" > and get: TypeError: sequence index must be integer Suggestions or help are appreciated. Sean McLinden Allegheny County Health Department
8328
Age (days ago)
8328
Last active (days ago)
0 comments
1 participants
participants (1)
-
mclinden@informed.net