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
8a032f95
Commit
8a032f95
authored
Mar 30, 2004
by
Sidnei da Silva
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Escape value on propstat the same way its done on allprops.
parent
ba946870
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
lib/python/OFS/PropertySheets.py
lib/python/OFS/PropertySheets.py
+7
-6
No files found.
lib/python/OFS/PropertySheets.py
View file @
8a032f95
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
"""Property sheets"""
"""Property sheets"""
__version__
=
'$Revision: 1.9
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.9
4
$'
[
11
:
-
2
]
import
time
,
App
.
Management
,
Globals
,
sys
import
time
,
App
.
Management
,
Globals
,
sys
from
webdav.WriteLockInterface
import
WriteLockInterface
from
webdav.WriteLockInterface
import
WriteLockInterface
...
@@ -331,10 +331,9 @@ class PropertySheet(Traversable, Persistent, Implicit):
...
@@ -331,10 +331,9 @@ class PropertySheet(Traversable, Persistent, Implicit):
# Quote non-xml items here?
# Quote non-xml items here?
attrs
=
''
attrs
=
''
if
hasattr
(
self
,
"dav__"
+
name
):
if
not
hasattr
(
self
,
"dav__"
+
name
):
prop
=
' <n:%s%s>%s</n:%s>'
%
(
name
,
attrs
,
value
,
name
)
value
=
xml_escape
(
value
)
else
:
prop
=
' <n:%s%s>%s</n:%s>'
%
(
name
,
attrs
,
value
,
name
)
prop
=
' <n:%s%s>%s</n:%s>'
%
(
name
,
attrs
,
xml_escape
(
value
),
name
)
result
.
append
(
prop
)
result
.
append
(
prop
)
if
not
result
:
return
''
if
not
result
:
return
''
...
@@ -382,8 +381,10 @@ class PropertySheet(Traversable, Persistent, Implicit):
...
@@ -382,8 +381,10 @@ class PropertySheet(Traversable, Persistent, Implicit):
else
:
else
:
# quote non-xml items here?
# quote non-xml items here?
attrs
=
''
attrs
=
''
if
not
hasattr
(
self
,
'dav__%s'
%
name
):
value
=
xml_escape
(
value
)
prop
=
'<n:%s%s xmlns:n="%s">%s</n:%s>
\
n
'
%
(
prop
=
'<n:%s%s xmlns:n="%s">%s</n:%s>
\
n
'
%
(
name
,
attrs
,
xml_id
,
value
,
name
)
name
,
attrs
,
xml_id
,
value
,
name
)
code
=
'200 OK'
code
=
'200 OK'
if
not
result
.
has_key
(
code
):
if
not
result
.
has_key
(
code
):
result
[
code
]
=
[
prop
]
result
[
code
]
=
[
prop
]
...
...
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