Trouble migrating to a PhotoFolder setup
I'm a (very) new Zope admin, and after seeing the featureset of Ron Bickers' Photo Product, I'm eager to start using it to automagically thumbnail photo uploads. I have Photo installed and working on my FreeBSD 4.4 / Zope 2.4.1 servers, and I can add images to my heart's content through the management interface, but I can't for the life of me figure out how to use a DTML call to insert an uploaded image as a Photo object into a PhotoFolder. I have a variable named 'imagename' that stores the value of the id I'd like the Photo to have. Another variable, 'imagefile', is the object returned for an <input type="file" ...> form element. I had been using: <dtml-call expr="manage_addImage(id=imagename, file=imagefile, title=imagename)"> to create an Image object previously. I've tried Google, archives of this mailing list, and elsewhere, but I just can't seem to find the equivalent <dtml-call> tag to add a Photo. TIA for any assistance. I'm really looking forward to using this setup! -- Kirk Strauser
-----Original Message----- From: zope-admin@zope.org [mailto:zope-admin@zope.org]On Behalf Of Kirk Strauser
I have a variable named 'imagename' that stores the value of the id I'd like the Photo to have. Another variable, 'imagefile', is the object returned for an <input type="file" ...> form element. I had been using:
<dtml-call expr="manage_addImage(id=imagename, file=imagefile, title=imagename)">
Try this: <dtml-call expr="manage_addProduct['Photo'].manage_addPhoto( id=imagename, title=imagename, file=imagefile)"> _______________________ Ron Bickers Logic Etc, Inc.
participants (2)
-
Kirk Strauser -
Ron Bickers