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
a9429b0d
Commit
a9429b0d
authored
Dec 22, 2004
by
Chris McDonough
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sorry... patch was off by a few lines. Sigh.
parent
d95a46fd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
lib/python/webdav/Resource.py
lib/python/webdav/Resource.py
+4
-4
No files found.
lib/python/webdav/Resource.py
View file @
a9429b0d
...
...
@@ -254,10 +254,6 @@ class Resource(ExtensionClass.Base, Lockable.LockableItem):
self
.
dav__init
(
REQUEST
,
RESPONSE
)
cmd
=
davcmds
.
PropFind
(
REQUEST
)
result
=
cmd
.
apply
(
self
)
RESPONSE
.
setStatus
(
207
)
RESPONSE
.
setHeader
(
'Content-Type'
,
'text/xml; charset="utf-8"'
)
RESPONSE
.
setBody
(
result
)
return
RESPONSE
# work around MSIE DAV bug for creation and modified date
if
(
REQUEST
.
get_header
(
'User-Agent'
)
==
'Microsoft Data Access Internet Publishing Provider DAV 1.1'
):
...
...
@@ -265,6 +261,10 @@ class Resource(ExtensionClass.Base, Lockable.LockableItem):
'<n:getlastmodified xmlns:n="DAV:" xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" b:dt="dateTime.rfc1123">'
)
result
=
result
.
replace
(
'<n:creationdate xmlns:n="DAV:">'
,
'<n:creationdate xmlns:n="DAV:" xmlns:b="urn:uuid:c2f41010-65b3-11d1-a29f-00aa00c14882/" b:dt="dateTime.tz">'
)
RESPONSE
.
setStatus
(
207
)
RESPONSE
.
setHeader
(
'Content-Type'
,
'text/xml; charset="utf-8"'
)
RESPONSE
.
setBody
(
result
)
return
RESPONSE
def
PROPPATCH
(
self
,
REQUEST
,
RESPONSE
):
"""Set and/or remove properties defined on the resource."""
...
...
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