[Zope] Hooks for methods other than GET/POST on port 80?
Tino Wildenhain
tino at wildenhain.de
Sat Dec 3 15:15:04 EST 2005
Am Samstag, den 03.12.2005, 21:56 +0200 schrieb Roman Suzi:
> Hi!
>
...
> DELETE /path/to/object/X/Y HTTP/1.1
> Host: myhost.myorg.org
> Content-Type: application/myprotocol+xml
>
> Of course, I have a product Z which has this class:
>
> class Z:
> ...
>
> def Y(self, REQUEST):
> if REQUEST.REQUEST_METHOD == 'POST':
> # no problem
> elif REQUEST.REQUEST_METHOD == 'DELETE':
> # this is never reached... Zope doesnt call Y
>
>
> What do I tweak so object X will receive Y on a usual HTTP port 80?
> THANKS!
It seems you want the action and not the original request.
When you use if ... why not just define
manage_delObjects on your class?
This works for PUT and most other request types
as well.
HTH
Tino
More information about the Zope
mailing list