Re: [Zope3-dev] RFC: Handling HTTP DELETE errors

2006-01-03 Thread Stephan Richter
On Thursday 01 December 2005 10:31, Marius Gedminas wrote: > When you do HTTP DELETE on objects that do not explicitly support > deletion, the default view (zope.app.http.delete.DELETE) tries to adapt > self.context.__parent__ to IWriteDirectory, which raises a TypeError > which is never caught. I

[Zope3-dev] RFC: Handling HTTP DELETE errors

2005-12-01 Thread Marius Gedminas
Hi folks, When you do HTTP DELETE on objects that do not explicitly support deletion, the default view (zope.app.http.delete.DELETE) tries to adapt self.context.__parent__ to IWriteDirectory, which raises a TypeError which is never caught. I suggest changing the view to raise MethodNotAllowed inst