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
b19e708d
Commit
b19e708d
authored
Mar 11, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
fd552539
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
lib/python/webdav/Resource.py
lib/python/webdav/Resource.py
+4
-4
lib/python/webdav/davcmds.py
lib/python/webdav/davcmds.py
+1
-1
No files found.
lib/python/webdav/Resource.py
View file @
b19e708d
...
@@ -85,9 +85,9 @@
...
@@ -85,9 +85,9 @@
"""WebDAV support - resource objects."""
"""WebDAV support - resource objects."""
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
import
sys
,
os
,
string
,
mimetypes
,
xml
cmds
import
sys
,
os
,
string
,
mimetypes
,
dav
cmds
from
common
import
absattr
,
aq_base
,
urlfix
,
rfc1123_date
from
common
import
absattr
,
aq_base
,
urlfix
,
rfc1123_date
...
@@ -197,7 +197,7 @@ class Resource:
...
@@ -197,7 +197,7 @@ class Resource:
def
PROPFIND
(
self
,
REQUEST
,
RESPONSE
):
def
PROPFIND
(
self
,
REQUEST
,
RESPONSE
):
"""Retrieve properties defined on the resource."""
"""Retrieve properties defined on the resource."""
self
.
dav__init
(
REQUEST
,
RESPONSE
)
self
.
dav__init
(
REQUEST
,
RESPONSE
)
cmd
=
xml
cmds
.
PropFind
(
REQUEST
)
cmd
=
dav
cmds
.
PropFind
(
REQUEST
)
result
=
cmd
.
apply
(
self
)
result
=
cmd
.
apply
(
self
)
RESPONSE
.
setStatus
(
207
)
RESPONSE
.
setStatus
(
207
)
RESPONSE
.
setHeader
(
'Content-Type'
,
'text/xml; charset="utf-8"'
)
RESPONSE
.
setHeader
(
'Content-Type'
,
'text/xml; charset="utf-8"'
)
...
@@ -211,7 +211,7 @@ class Resource:
...
@@ -211,7 +211,7 @@ class Resource:
raise
'Method Not Allowed'
,
(
raise
'Method Not Allowed'
,
(
'Method not supported for this resource.'
)
'Method not supported for this resource.'
)
# TODO: add lock checking here
# TODO: add lock checking here
cmd
=
xml
cmds
.
PropPatch
(
REQUEST
)
cmd
=
dav
cmds
.
PropPatch
(
REQUEST
)
result
=
cmd
.
apply
(
self
)
result
=
cmd
.
apply
(
self
)
RESPONSE
.
setStatus
(
207
)
RESPONSE
.
setStatus
(
207
)
RESPONSE
.
setHeader
(
'Content-Type'
,
'text/xml; charset="utf-8"'
)
RESPONSE
.
setHeader
(
'Content-Type'
,
'text/xml; charset="utf-8"'
)
...
...
lib/python/webdav/
xml
cmds.py
→
lib/python/webdav/
dav
cmds.py
View file @
b19e708d
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
"""WebDAV xml request objects."""
"""WebDAV xml request objects."""
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1 $'
[
11
:
-
2
]
import
sys
,
os
,
string
import
sys
,
os
,
string
from
common
import
absattr
,
aq_base
,
urlfix
from
common
import
absattr
,
aq_base
,
urlfix
...
...
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