Hello, On Sun, Oct 10, 1999 at 06:59:16PM +0200, Joseph Santaniello wrote:
I'm trying to get some dtml code to copy a folder a user selects from a form, but I can't get it to work.
I've made it ;) (with some little tweaks to get around some traps in CatalogAwareness.py). My basic dtml-code to copy one object to another Folder: <dtml-if "REQUEST.has_key('ids')"> <dtml-let data="manage_cutObjects(REQUEST['ids'])"> <dtml-call "Review.manage_pasteObjects(data,REQUEST)"> </dtml-let> </dtml-if> If you use this code you will fall over some things in CatalogAwareness.py (methode url(), lines 159-162) which require a valid REQUEST object. I added an if hasattr(self, 'REQUEST'): (patch include as attachment) on top of these lines and added a method DestinationURL() to my class which simply returns the previously saved output from absolute_url(). What should I say, it works good enough for my application and I noticed no drawbacks (yet!). Sascha -- .-> Sascha Matzke - sascha@bespin.de - http://www.bespin.de -. | Keine Macht fuer niemand... | | Ton Steine Scherben | `-- On this earth for 24 years, 1 days <----------------'