[Zope] PUT method & get property of parent folder

Marcus Schopen marcus@localguru.de
Tue, 09 Apr 2002 00:34:04 +0200


Hi,

how and where can I test in the PUT method, if a property called "TIDY" (boolean) is set in the
parent folder the new instance of xyz will created in?

Class xyz(DTMLDocument):
    [...]
    def PUT(self, REQUEST, RESPONSE):
        """Handle HTTP PUT requests."""
        self.dav__init(REQUEST, RESPONSE)
        self.dav__simpleifhandler(REQUEST, RESPONSE, refresh=1)
        body=REQUEST.get('BODY', '')
        self._validateProxy(REQUEST)
        self.munge(body)
        self.ZCacheable_invalidate()
        RESPONSE.setStatus(204)
        return RESPONSE

Thanks
Marcus

-- 
Petition for a Software Patent Free Europe 
http://petition.eurolinux.org