[Zope] Hooks for methods other than GET/POST on port 80?

Roman Susi rnd at onego.ru
Sun Dec 4 03:43:31 EST 2005


Tino Wildenhain wrote:

>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?
>  
>

No, I want to control whatever is done. That is, I want to intercept
that request.

>This works for PUT and most other request types
>as well.
>
>HTH
>Tino
>  
>



More information about the Zope mailing list