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

_______________________________________________
Zope maillist  -  Zope@zope.org
http://mail.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to