10 Jun
2007
10 Jun
'07
5:18 p.m.
Andreas Jung wrote at 2007-6-10 08:49 +0200:
... newob = container.manage_clone(...) newob.manage_changeProperties(REQUEST=context.REQUEST) catalog.catalog_object(...)
Minor remark: Usually, it is a bad idea to call "manage_changeProperties" (or other "mange*" methods) with a REQUEST argument. The "manage*" methods interpret the passing of "REQUEST" as "I am used from the ZMI" and often perform a redirect in this case -- with is usually not wanted. An alternative (but not sure) to the code above might be "...manage_changeProperties(**REQUEST.form)" -- Dieter