[Zope] sorting ids in python
robert rottermann
robert at redcor.ch
Mon Dec 8 15:11:36 EST 2008
Garry Saddington schrieb:
> Can anyone help me sort the following by id in a python script?
>
> for object in context.objectValues(['Folder', 'DTML
> Document','ZipFolder','File','Image']):
objs=context.objectValues(['Folder', 'DTMLDocument','ZipFolder','File','Image'])
objs.sort()
for o in objs:
..
robert
>
> Import of sequence is not authorised in my python scripts, I am presuming
> (probably wrongly) that sequence is needed for sort.
> Regards
> Garry
> _______________________________________________
> Zope maillist - Zope at zope.org
> http://mail.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists -
> http://mail.zope.org/mailman/listinfo/zope-announce
> http://mail.zope.org/mailman/listinfo/zope-dev )
>
>
More information about the Zope
mailing list