[Zope-Checkins] CVS: Zope/lib/python/webdav - davcmds.py:1.17.10.1
Andreas Jung
andreas@digicool.com
Wed, 13 Mar 2002 15:49:10 -0500
Update of /cvs-repository/Zope/lib/python/webdav
In directory cvs.zope.org:/tmp/cvs-serv32306/lib/python/webdav
Modified Files:
Tag: Zope-2_5-branch
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.17.10.1 ===
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: