Commit d7a7d180 authored by 's avatar

*** empty log message ***

parent 36b8bc29
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Property sheets""" """Property sheets"""
__version__='$Revision: 1.14 $'[11:-2] __version__='$Revision: 1.15 $'[11:-2]
import time, string, App.Management import time, string, App.Management
from ZPublisher.Converters import type_converters from ZPublisher.Converters import type_converters
...@@ -291,10 +291,11 @@ class PropertySheet(Persistent, Implicit): ...@@ -291,10 +291,11 @@ class PropertySheet(Persistent, Implicit):
# allow for xml properties # allow for xml properties
meta=item.get('meta', {}) meta=item.get('meta', {})
attrs=meta.get('__xml_attrs__', '') attrs=meta.get('__xml_attrs__', None)
if attrs: if attrs is not None:
attrs=map(lambda n, v: ' %s="%s"', attrs.items()) attrs=map(lambda n, v: ' %s="%s"', attrs.items())
attrs=join(attrs, '') attrs=join(attrs, '')
else: attrs=''
prop=' <n:%s%s>%s</n:%s>' % (name, attrs, value, name) prop=' <n:%s%s>%s</n:%s>' % (name, attrs, value, name)
result.append(prop) result.append(prop)
if not result: return '' if not result: return ''
......
"""HTTP 1.1 / WebDAV client library.""" """HTTP 1.1 / WebDAV client library."""
__version__='$Revision: 1.3 $'[11:-2] __version__='$Revision: 1.4 $'[11:-2]
import sys, os, string, regex, time, types import sys, os, string, regex, time, types
import socket, httplib, mimetools import socket, httplib, mimetools
...@@ -373,7 +373,8 @@ funny="""<?xml version="1.0" encoding="utf-8"?> ...@@ -373,7 +373,8 @@ funny="""<?xml version="1.0" encoding="utf-8"?>
<d:set> <d:set>
<d:prop> <d:prop>
<z:author>Brian Lloyd</z:author> <z:author>Brian Lloyd</z:author>
<z:title>My New Title</z:title> <z:color>blue</z:color>
<z:count>72</z:count>
<q:Authors> <q:Authors>
<q:Author> <q:Author>
<q:Person> <q:Person>
...@@ -381,14 +382,11 @@ funny="""<?xml version="1.0" encoding="utf-8"?> ...@@ -381,14 +382,11 @@ funny="""<?xml version="1.0" encoding="utf-8"?>
</q:Person> </q:Person>
</q:Author> </q:Author>
</q:Authors> </q:Authors>
<q:color>
red
</q:color>
</d:prop> </d:prop>
</d:set> </d:set>
<d:remove>
<d:prop>
<q:hoohoo/>
<z:favorite_color/>
</d:prop>
</d:remove>
</d:propertyupdate> </d:propertyupdate>
""" """
......
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