Re: [Zope-dev] what to return for a manage_edit method

2001-06-23 Thread Dieter Maurer

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 (..., REQUEST=None):
  
  if REQUEST is not None:
# through the WEB

  else:
called directly

You may use similar code.


Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )



[Zope-dev] what to return for a manage_edit method

2001-06-22 Thread Sin Hang Kin

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.


Rgs,

Kent Sin
-
kentsin.weblogs.com
kentsin.imeme.net


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope )