[Zope-Checkins] CVS: Zope/lib/python/webdav - davcmds.py:1.18

Andreas Jung andreas@digicool.com
Wed, 13 Mar 2002 15:48:25 -0500


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

Modified Files:
	davcmds.py 
Log Message:

      - WebDAV: removing an non-existing property now returns a HTTP
        200-OK response instead of 404 (now compliant with RFC 2518)



=== Zope/lib/python/webdav/davcmds.py 1.17 => 1.18 ===
                 propset=propsets.get(ns, None)
                 if propset is None or not propset.hasProperty(name):
-                    errors.append('Property not found: %s' % name)
-                    status='404 Not Found'
+                    # removing a non-existing property is not an error!
+                    # according to RFC 2518                    
+                    status='200 OK'
                 else:
                     try: propset._delProperty(name)
                     except: