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 instead when there is no adapter:

        dir = IWriteDirectory(container, None)
        if dir is None:
            raise MethodNotAllowed(self.context, self.request)

If there are no objections, I will write a test and make this change to
Zope 3 trunk.

(This is also http://www.zope.org/Collectors/Zope3-dev/497, but I
thought more people would see my request for comments if I posted it

Marius Gedminas
9. Okay, then, what do you think about "syntactic noise" in config files?

        -- http://open.nit.ca/wiki/index.php?page=RetchMail

Attachment: signature.asc
Description: Digital signature

Zope3-dev mailing list
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to