Commit c1929243 authored by 's avatar

*** empty log message ***

parent 61445baa
...@@ -84,7 +84,7 @@ ...@@ -84,7 +84,7 @@
############################################################################## ##############################################################################
"""Property sheets""" """Property sheets"""
__version__='$Revision: 1.20 $'[11:-2] __version__='$Revision: 1.21 $'[11:-2]
import time, string, App.Management import time, string, App.Management
from ZPublisher.Converters import type_converters from ZPublisher.Converters import type_converters
...@@ -135,6 +135,17 @@ psxml='<d:propstat xmlns:n="%s">\n' \ ...@@ -135,6 +135,17 @@ psxml='<d:propstat xmlns:n="%s">\n' \
'</d:propstat>\n' '</d:propstat>\n'
propstat='<d:propstat xmlns:n="%s">\n' \
' <d:prop>\n' \
'%s\n' \
' </d:prop>\n' \
' <d:status>HTTP/1.1 %s</d:status>\n%s' \
'</d:propstat>\n',
propdesc=' <d:responsedescription>\n' \
' %s\n' \
' </d:responsedescription>\n'
class PropertySheet(Persistent, Implicit): class PropertySheet(Persistent, Implicit):
"""A PropertySheet is a container for a set of related properties and """A PropertySheet is a container for a set of related properties and
...@@ -273,16 +284,16 @@ class PropertySheet(Persistent, Implicit): ...@@ -273,16 +284,16 @@ class PropertySheet(Persistent, Implicit):
propstat='<d:propstat xmlns:n="%s">\n' \ ## propstat='<d:propstat xmlns:n="%s">\n' \
' <d:prop>\n' \ ## ' <d:prop>\n' \
'%s\n' \ ## '%s\n' \
' </d:prop>\n' \ ## ' </d:prop>\n' \
' <d:status>HTTP/1.1 %s</d:status>\n%s' \ ## ' <d:status>HTTP/1.1 %s</d:status>\n%s' \
'</d:propstat>\n', ## '</d:propstat>\n',
propdesc=' <d:responsedescription>\n' \ ## propdesc=' <d:responsedescription>\n' \
' %s\n' \ ## ' %s\n' \
' </d:responsedescription>\n' ## ' </d:responsedescription>\n'
def dav__allprop(self, propstat=propstat, join=string.join): def dav__allprop(self, propstat=propstat, join=string.join):
...@@ -350,8 +361,8 @@ class PropertySheet(Persistent, Implicit): ...@@ -350,8 +361,8 @@ class PropertySheet(Persistent, Implicit):
prop=' <n:%s%s>%s</n:%s>' % (name, attrs, value, name) prop=' <n:%s%s>%s</n:%s>' % (name, attrs, value, name)
return propstat % (xml_id, prop, '200 OK', '')) return propstat % (xml_id, prop, '200 OK', ''))
del propstat # del propstat
del propdesc # del propdesc
def olddav__propstat(self, allprop, names, join=string.join): def olddav__propstat(self, allprop, names, join=string.join):
# The dav__propstat method returns a chunk of xml containing # The dav__propstat method returns a chunk of xml containing
......
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