[Zope] python question
Kate Legere
klegere at kfpl.ca
Tue May 31 15:34:38 EDT 2005
I may be asking this in the wrong place but I have a tal page where I want
to use python to display only the most recent addition to a folder of files.
I can sort the folder and return all the files easily with:
return sequence.sort(files, (('bobobase_modification_time', 'cmp',
'desc'),))
How do I return just the most recent one? (I tried sorting and then using
return max(files) but that doesn't give me all the properties and I need
them for display)
Kate
More information about the Zope
mailing list