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
9d813142
Commit
9d813142
authored
Mar 04, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
f7064900
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
lib/python/webdav/xmlcmds.py
lib/python/webdav/xmlcmds.py
+4
-3
No files found.
lib/python/webdav/xmlcmds.py
View file @
9d813142
...
...
@@ -85,7 +85,7 @@
"""WebDAV xml request objects."""
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
4
$'
[
11
:
-
2
]
import
sys
,
os
,
string
from
common
import
absattr
,
aq_base
,
urlfix
...
...
@@ -160,6 +160,7 @@ class PropPatch:
def
parse
(
self
,
data
,
dav
=
'DAV:'
):
root
=
XmlParser
().
parse
(
data
)
vals
=
self
.
values
e
=
root
.
elements
(
'propertyupdate'
,
ns
=
dav
)[
0
]
for
ob
in
e
.
elements
():
if
ob
.
name
()
==
'set'
and
ob
.
namespace
()
==
dav
:
...
...
@@ -174,12 +175,12 @@ class PropPatch:
md
[
attr
.
name
()]
=
attr
.
value
()
md
=
{
'attrs'
:
attrs
,
'nsid'
:
val
.
__nskey__
}
item
=
(
val
.
name
(),
val
.
namespace
(),
val
.
strval
(),
md
)
self
.
value
s
.
append
(
item
)
val
s
.
append
(
item
)
if
ob
.
name
()
==
'remove'
and
ob
.
namespace
()
==
dav
:
prop
=
ob
.
elements
(
'prop'
,
ns
=
dav
)[
0
]
for
val
in
prop
.
elements
():
item
=
(
val
.
name
(),
val
.
namespace
())
self
.
value
s
.
append
(
item
)
val
s
.
append
(
item
)
def
apply
(
self
,
obj
):
url
=
urlfix
(
self
.
request
[
'URL'
],
'PROPPATCH'
)
...
...
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