[Zope-dev] what to return for a manage_edit method
Dieter Maurer
dieter@handshake.de
Sat, 23 Jun 2001 22:37:59 +0200 (CEST)
Sin Hang Kin writes:
> What should I return to for a method that create a new object or modify the
> object?
>
> If I return a redirection, will it too restricted for web only? If I return
> a simple ok, it seems very stupid.
The Zope management interface often uses constructions like:
def XXXX(..., REQUEST=None):
....
if REQUEST is not None:
# through the WEB
....
else:
called directly
You may use similar code.
Dieter