[Zope] how to overwrite webdav.NullResource.NullResource.PUT

Marcus Schopen marcus@localguru.de
Wed, 10 Apr 2002 20:23:42 +0200


Hello!

How can I overwrite the PUT method in "webdav.NullResource.NullResource" in the __init__.py of my
product.

The following doesn't work:

[...]
import webdav.NullResource
  
def myPUT(self, REQUEST, RESPONSE):
   [original code]

webdav.NullResource.NullResource.PUT = myPUT


overwriting "webdav.NullResource.NullResource._default_PUT_factory" works fine:

def PUT_factory( self, name, typ, body ):
   [original + my own code]   

webdav.NullResource.NullResource._default_PUT_factory = PUT_factory


Bye
Marcus

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