Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
c1929243
Commit
c1929243
authored
Mar 10, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
61445baa
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
12 deletions
+23
-12
lib/python/OFS/PropertySheets.py
lib/python/OFS/PropertySheets.py
+23
-12
No files found.
lib/python/OFS/PropertySheets.py
View file @
c1929243
...
...
@@ -84,7 +84,7 @@
##############################################################################
"""Property sheets"""
__version__
=
'$Revision: 1.2
0
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
1
$'
[
11
:
-
2
]
import
time
,
string
,
App
.
Management
from
ZPublisher.Converters
import
type_converters
...
...
@@ -135,6 +135,17 @@ psxml='<d:propstat xmlns:n="%s">\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
):
"""A PropertySheet is a container for a set of related properties and
...
...
@@ -273,16 +284,16 @@ class PropertySheet(Persistent, Implicit):
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
'
,
##
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
'
##
propdesc=' <d:responsedescription>\n' \
##
' %s\n' \
##
' </d:responsedescription>\n'
def
dav__allprop
(
self
,
propstat
=
propstat
,
join
=
string
.
join
):
...
...
@@ -350,8 +361,8 @@ class PropertySheet(Persistent, Implicit):
prop
=
' <n:%s%s>%s</n:%s>'
%
(
name
,
attrs
,
value
,
name
)
return
propstat
%
(
xml_id
,
prop
,
'200 OK'
,
''
))
del
propstat
del
propdesc
#
del propstat
#
del propdesc
def
olddav__propstat
(
self
,
allprop
,
names
,
join
=
string
.
join
):
# The dav__propstat method returns a chunk of xml containing
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment