[Zope] Automatic Cataloging
Dieter Maurer
dieter at handshake.de
Sun Jun 10 13:18:40 EDT 2007
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
More information about the Zope
mailing list