[Zope-dev] ZPatterns implementation question: images attributes?

Michael Bernstein webmaven@lvcm.com
Sat, 13 Jan 2001 17:34:39 -0800


RDM wrote:
> 
> I have a specialist (actually, EMarket has a specialist <grin>) that
> manages objects that from a design point of view I think should have
> a couple of Images as attributes (thumbnail and fullsized images of
> the product).  The question is, how do I implement this using
> ZPatterns?  Currently all of the other object data is pulled from an SQL
> database.  I don't mind storing the Images in the ZODB, but I'm having
> a hard time finguring out how I would implement that.

I've been thinking about my own need for a massive
searchable image archive, and have been wondering if I could
reimplement the ZPhotoAlbum TTW product (which inherits from
ZCatalog and ObjectManager) as a Specialist with a Rack of
Photo objects (Photo is a 'normal' Python Product), but I'm
unsure of how to go about this.

I've also been considering creating an ImageArchive ZClass
that inherits from ZCatalog and BTree folder, so I have
infrastructure that is better suited to managing thousands
(potentially hundreds of thousands) of objects.

Any ideas would be welcome.

Michael Bernstein.