3 Dec
2005
3 Dec
'05
8:15 p.m.
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