Commit d7a7d180 authored by 's avatar

*** empty log message ***

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