[Zope] Getting all images in the ZODB 'out' into Apache-land?
douwe@oberon.nl
douwe@oberon.nl
Tue, 16 Jul 2002 15:56:27 +0200
> Thanks Douwe,
> That seems certainly doable - I'm not hugely familiar with
> catalogs but I'll
> have a look see. The urllib stuff, I'm pretty ok with.
We'll you don't have to use the catalog. a python method like:
def printImagesFromObj( obj ):
for child in context.objectValues():
if child.meta_type=='Image':
print '<a href="%s">%s</a>' % (child.absolute_url(),
child.title_or_id() )
elif child.meta_type in ['Folder',...]:
printImagesFromObj( child )
printImagesFromObj( context )
I didn't really test it, but you get the idea.
Douwe