Commit 36b8bc29 authored by 's avatar

*** empty log message ***

parent ee0526ec
"""HTTP 1.1 / WebDAV client library."""
__version__='$Revision: 1.2 $'[11:-2]
__version__='$Revision: 1.3 $'[11:-2]
import sys, os, string, regex, time, types
import socket, httplib, mimetools
......@@ -366,6 +366,33 @@ set_xml="""<?xml version="1.0" encoding="utf-8"?>
</d:propertyupdate>
"""
funny="""<?xml version="1.0" encoding="utf-8"?>
<d:propertyupdate xmlns:d="DAV:"
xmlns:z="http://www.zope.org/propsets/default"
xmlns:q="http://www.something.com/foo/bar">
<d:set>
<d:prop>
<z:author>Brian Lloyd</z:author>
<z:title>My New Title</z:title>
<q:Authors>
<q:Author>
<q:Person>
<q:Name>Brian Lloyd</q:Name>
</q:Person>
</q:Author>
</q:Authors>
</d:prop>
</d:set>
<d:remove>
<d:prop>
<q:hoohoo/>
<z:favorite_color/>
</d:prop>
</d:remove>
</d:propertyupdate>
"""
rem_xml="""<?xml version="1.0" encoding="utf-8"?>
<d:propertyupdate xmlns:d="DAV:"
xmlns:z="http://www.zope.org/propsets/default">
......
......@@ -85,7 +85,7 @@
"""WebDAV xml request objects."""
__version__='$Revision: 1.6 $'[11:-2]
__version__='$Revision: 1.7 $'[11:-2]
import sys, os, string
from common import absattr, aq_base, urlfix
......@@ -209,8 +209,7 @@ class PropPatch:
name, ns, val, md=value
propset=propsets.get(ns, None)
if propset is None:
obj.propertysheets.manage_addPropertySheet('', ns)
propsets=obj.propertysheets.values()
propsets.manage_addPropertySheet('', ns)
propset=propsets.get(ns)
propdict=propset._propdict()
if propset.hasProperty(name):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment