[Zope] Getting all images in the ZODB 'out' into Apache-land?

Oliver Bleutgen myzope@gmx.net
Tue, 16 Jul 2002 18:05:45 +0200


douwe@oberon.nl wrote:
>>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
> 

Alternatively, use ZopeFind to get the urls of the images
and feed wget with this list. No need to "artificially" build a html 
page with links.

cheers,
oliver