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

_______________________________________________
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 )

Reply via email to