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@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 ) > > _______________________________________________ Zope maillist - Zope@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 )