On Mon, 23 Aug 1999, Kevin Dangoor wrote:
AttributeError: (see above)
Hmm... it's talking about "DestinationURL". It shouldn't be hitting DestinationURL, because of the NoRedir flag. Did you modify the multiRes_add method (as mentioned in the first part of the howto)?
That's what I get for not blindly following instructions! I thought since in my first little test case I was only adding one instance it was harmless to re-direct the output. It looks like I was wrong. I went ahead and modified multiRes_add and it worked great. Now I can loop through a tinytable and produce multiRes objects just like I wanted to. BTW as far as I am concerned you are a genius for figuring out the line: <dtml-with "manage_addProduct['YourProduct']"> by looking at the HTML source. I don't really know python yet. What is the meaning of the "[]" as opposed to the "()"? Array instead of function? In the HOWTO it might be nice to point out that _ is a special variable that contains the namespace and people should look in the DTML users's guide for more info.
Hmm... if "multiRes" objects can only appear within "photoCD" objects, it would probably be good to recreate the multiRes ZClass within the photoCD ZClass. This is good for two reasons: 1) multiRes will only show up as an option within photoCDs, 2) calling multiRes_add is really straightforward.
I thought about this but decided against it. multiRes is a ZClass for displaying multiple resolutions of images stored on a disk. It can display a small image as a link to a larger image. I thought it was useful enough outside of photoCD directories that I might make it available to others sometime who might have other uses for it. Thanks again! -Chris