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
36b8bc29
Commit
36b8bc29
authored
Mar 04, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
ee0526ec
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
4 deletions
+30
-4
lib/python/webdav/client.py
lib/python/webdav/client.py
+28
-1
lib/python/webdav/xmlcmds.py
lib/python/webdav/xmlcmds.py
+2
-3
No files found.
lib/python/webdav/client.py
View file @
36b8bc29
"""HTTP 1.1 / WebDAV client library."""
"""HTTP 1.1 / WebDAV client library."""
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
import
sys
,
os
,
string
,
regex
,
time
,
types
import
sys
,
os
,
string
,
regex
,
time
,
types
import
socket
,
httplib
,
mimetools
import
socket
,
httplib
,
mimetools
...
@@ -366,6 +366,33 @@ set_xml="""<?xml version="1.0" encoding="utf-8"?>
...
@@ -366,6 +366,33 @@ set_xml="""<?xml version="1.0" encoding="utf-8"?>
</d:propertyupdate>
</d:propertyupdate>
"""
"""
funny
=
"""<?xml version="1.0" encoding="utf-8"?>
<d:propertyupdate xmlns:d="DAV:"
xmlns:z="http://www.zope.org/propsets/default"
xmlns:q="http://www.something.com/foo/bar">
<d:set>
<d:prop>
<z:author>Brian Lloyd</z:author>
<z:title>My New Title</z:title>
<q:Authors>
<q:Author>
<q:Person>
<q:Name>Brian Lloyd</q:Name>
</q:Person>
</q:Author>
</q:Authors>
</d:prop>
</d:set>
<d:remove>
<d:prop>
<q:hoohoo/>
<z:favorite_color/>
</d:prop>
</d:remove>
</d:propertyupdate>
"""
rem_xml
=
"""<?xml version="1.0" encoding="utf-8"?>
rem_xml
=
"""<?xml version="1.0" encoding="utf-8"?>
<d:propertyupdate xmlns:d="DAV:"
<d:propertyupdate xmlns:d="DAV:"
xmlns:z="http://www.zope.org/propsets/default">
xmlns:z="http://www.zope.org/propsets/default">
...
...
lib/python/webdav/xmlcmds.py
View file @
36b8bc29
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
"""WebDAV xml request objects."""
"""WebDAV xml request objects."""
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
7
$'
[
11
:
-
2
]
import
sys
,
os
,
string
import
sys
,
os
,
string
from
common
import
absattr
,
aq_base
,
urlfix
from
common
import
absattr
,
aq_base
,
urlfix
...
@@ -209,8 +209,7 @@ class PropPatch:
...
@@ -209,8 +209,7 @@ class PropPatch:
name
,
ns
,
val
,
md
=
value
name
,
ns
,
val
,
md
=
value
propset
=
propsets
.
get
(
ns
,
None
)
propset
=
propsets
.
get
(
ns
,
None
)
if
propset
is
None
:
if
propset
is
None
:
obj
.
propertysheets
.
manage_addPropertySheet
(
''
,
ns
)
propsets
.
manage_addPropertySheet
(
''
,
ns
)
propsets
=
obj
.
propertysheets
.
values
()
propset
=
propsets
.
get
(
ns
)
propset
=
propsets
.
get
(
ns
)
propdict
=
propset
.
_propdict
()
propdict
=
propset
.
_propdict
()
if
propset
.
hasProperty
(
name
):
if
propset
.
hasProperty
(
name
):
...
...
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