[Zope-Checkins] CVS: Zope/lib/python/webdav - NullResource.py:1.29.4.4

Brian Lloyd brian@digicool.com
Wed, 26 Sep 2001 09:41:35 -0400


Update of /cvs-repository/Zope/lib/python/webdav
In directory cvs.zope.org:/tmp/cvs-serv31631

Modified Files:
      Tag: Zope-2_4-branch
	NullResource.py 
Log Message:
Allow OPTIONS on null resources to be rfc compliant.


=== Zope/lib/python/webdav/NullResource.py 1.29.4.3 => 1.29.4.4 ===
 
     # Most methods return 404 (Not Found) for null resources.
-    DELETE=OPTIONS=TRACE=PROPFIND=PROPPATCH=COPY=MOVE=HEAD
+    DELETE=TRACE=PROPFIND=PROPPATCH=COPY=MOVE=HEAD
 
     def _default_PUT_factory( self, name, typ, body ):
         #   Return DTMLDoc/Image/File, based on sniffing.
@@ -315,11 +315,6 @@
     title_or_id__roles__=None
     def title_or_id(self):
         return 'Foo'
-
-    OPTIONS__roles__=None
-    def OPTIONS(self, REQUEST, RESPONSE):
-        """Retrieve communication options."""
-        return Resource.OPTIONS(self, REQUEST, RESPONSE)
 
     def PROPFIND(self, REQUEST, RESPONSE):
         """Retrieve properties defined on the resource."""