[Zope-Checkins] CVS: Zope/lib/python/OFS - PropertySheets.py:1.74.4.7
Andreas Jung
andreas@zope.com
Fri, 26 Oct 2001 10:19:52 -0400
Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv11891/lib/python/OFS
Modified Files:
Tag: Zope-2_4-branch
PropertySheets.py
Log Message:
WebDAV: Zope escaped nested object properties derived from
internal dav__* functions in PropertySheets.py although they
are considered to be safe and do not need any escaping. This
caused Zope to be completely incomplete with Windows XP. Fixed !
=== Zope/lib/python/OFS/PropertySheets.py 1.74.4.6 => 1.74.4.7 ===
attrs=''
- prop=' <n:%s%s>%s</n:%s>' % (name, attrs, xml_escape(value), name)
+ if hasattr(self,"dav__"+name):
+ prop=' <n:%s%s>%s</n:%s>' % (name, attrs, value, name)
+ else:
+ prop=' <n:%s%s>%s</n:%s>' % \
+ (name, attrs, xml_escape(value), name)
result.append(prop)
if not result: return ''