For those our there in the audience keeping score (and for the poor schmuck who searches the list archive for the answer to the same question): The answer is manage_addProduct['VarImage'].manage_addVarImage(imagename, imagedata) Where manage_addProduct[productname].productconstructor(parameters) is the general form. Edward On Wednesday, July 30, 2003, at 03:27 PM, Edward Pollard wrote:
Since reinventing the wheel is a waste of my time, I'd like to use VarImage (seen here:http://www.zope.org/Members/terry/) for some of my dynamic image resizing needs. However, to do this, I need to be able to programatically create VarImage objects via Python scripts.
I'm not entirely sure if I can do that. The attempt at cheap and easy solution, replacing calls to manage_addImage with manage_addVarImage, did not work). Is there something I need to do with the product to make its constructor usable in such a fashion?
Thanks,
Edward
_______________________________________________ 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 )