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
3362eb76
Commit
3362eb76
authored
Aug 29, 2002
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
backport of webdav compatibility fixes from 2.5 (lock-token header
missing when locking objects)
parent
8732f7f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
lib/python/webdav/NullResource.py
lib/python/webdav/NullResource.py
+3
-2
lib/python/webdav/Resource.py
lib/python/webdav/Resource.py
+2
-1
No files found.
lib/python/webdav/NullResource.py
View file @
3362eb76
...
...
@@ -13,7 +13,7 @@
"""WebDAV support - null resource objects."""
__version__
=
'$Revision: 1.3
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.3
9
$'
[
11
:
-
2
]
import
sys
,
os
,
mimetypes
,
Globals
,
davcmds
import
Acquisition
,
OFS
.
content_types
...
...
@@ -203,8 +203,9 @@ class NullResource(Persistent, Acquisition.Implicit, Resource):
else
:
# The command was succesful
lock
=
locknull
.
wl_getLock
(
token
)
RESPONSE
.
setStatus
(
200
)
RESPONSE
.
setStatus
(
200
)
RESPONSE
.
setHeader
(
'Content-Type'
,
'text/xml; charset="utf-8"'
)
RESPONSE
.
setHeader
(
'Lock-Token'
,
'opaquelocktoken:'
+
token
)
RESPONSE
.
setBody
(
lock
.
asXML
())
...
...
lib/python/webdav/Resource.py
View file @
3362eb76
...
...
@@ -13,7 +13,7 @@
"""WebDAV support - resource objects."""
__version__
=
'$Revision: 1.5
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.5
3
$'
[
11
:
-
2
]
import
sys
,
os
,
mimetypes
,
davcmds
,
ExtensionClass
,
Lockable
from
common
import
absattr
,
aq_base
,
urlfix
,
rfc1123_date
,
tokenFinder
,
urlbase
...
...
@@ -499,6 +499,7 @@ class Resource(ExtensionClass.Base, Lockable.LockableItem):
lock
=
self
.
wl_getLock
(
token
)
RESPONSE
.
setStatus
(
200
)
RESPONSE
.
setHeader
(
'Content-Type'
,
'text/xml; charset="utf-8"'
)
RESPONSE
.
setHeader
(
'Lock-Token'
,
'opaquelocktoken:'
+
token
)
RESPONSE
.
setBody
(
lock
.
asXML
())
else
:
# There's no body, so this likely to be a refresh request
...
...
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