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
45721730
Commit
45721730
authored
Mar 18, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
90d3f62a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
2 deletions
+13
-2
lib/python/webdav/davcmds.py
lib/python/webdav/davcmds.py
+13
-2
No files found.
lib/python/webdav/davcmds.py
View file @
45721730
...
...
@@ -85,9 +85,9 @@
"""WebDAV xml request objects."""
__version__
=
'$Revision: 1.
1
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
import
sys
,
os
,
string
import
sys
,
os
,
string
,
regex
from
common
import
absattr
,
aq_base
,
urlfix
from
OFS.PropertySheets
import
DAVProperties
from
xmltools
import
XmlParser
...
...
@@ -106,6 +106,7 @@ class DAVProps(DAVProperties):
class
PropFind
:
"""Model a PROPFIND request."""
def
__init__
(
self
,
request
):
...
...
@@ -149,6 +150,7 @@ class PropFind:
result
=
StringIO
()
depth
=
self
.
depth
url
=
urlfix
(
self
.
request
[
'URL'
],
'PROPFIND'
)
url
=
rel_url
(
url
)
result
.
write
(
'<?xml version="1.0" encoding="utf-8"?>
\
n
'
\
'<d:multistatus xmlns:d="DAV:">
\
n
'
)
iscol
=
hasattr
(
obj
,
'__dav_collection__'
)
...
...
@@ -339,3 +341,12 @@ class Lock:
self
.
type
=
lt
.
elements
()[
0
].
name
()
lo
=
info
.
elements
(
'owner'
,
ns
=
dav
)
if
lo
:
self
.
owner
=
lo
[
0
].
toxml
()
def
rel_url
(
url
,
r
=
regex
.
compile
(
'http://
\
([^:/]+
\
)
\
(:[
0
-9]+
\
)?
\
(/.+
\
)?
'
,
regex.casefold)):
if r.match(url) >= 0:
host,port,uri=r.group(1,2,3)
return uri or '
/
'
else: raise ValueError, url
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