[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Zope] ZPT reverse ordering
on or about, Friday, May 03, 2002, we have reason to believe that Tom Nixon wrote something along the lines of :
>> i think this will help getting it reversed
>> tal:repeat="subitems
>> python:sequence.sort(thelist,(('bobobase_modification_time','d
>> esc'),))">
TN> Thanks for your help. I get an error when I try this though:
TN> Error Type: TALESError
TN> Error Value: exceptions.AttributeError on 'None' object has no attribute
TN> 'getitem' in "", at line 160, column 3
sorry .. my fault , you need a comparisations function in there too.
still untested:
sort(thelist,(('bobobase_modification_time','cmp','desc'),))
TN> If I take out the 'desc' then it works fine. Any ideas?
TN> Hang on a minute, I just fixed it! I replaced bobobase_modification_time
TN> with bobobase_creation_time, and left out the 'desc'. It now shows the
TN> most recent first.
well . the "desc" setting could come in handy anyway.. :-)
:-)
--
Geir Bækholt web-developer
geirh@xxxxxxxxxx funcom oslo | webdev-team
_______________________________________________
Zope maillist - Zope@xxxxxxxx
http://lists.zope.org/mailman/listinfo/zope
** No cross posts or HTML encoding! **
(Related lists -
http://lists.zope.org/mailman/listinfo/zope-announce
http://lists.zope.org/mailman/listinfo/zope-dev )
This mailing list archive is a service of Copilotco.