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
6e8f5d10
Commit
6e8f5d10
authored
Mar 26, 1999
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added a header for the borg to help ie5 avoid trying FrontPage operations.
parent
968a3f21
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
+2
-2
lib/python/webdav/Resource.py
lib/python/webdav/Resource.py
+3
-1
No files found.
lib/python/webdav/NullResource.py
View file @
6e8f5d10
...
...
@@ -85,7 +85,7 @@
"""WebDAV support - null resource objects."""
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
import
sys
,
os
,
string
,
mimetypes
import
Acquisition
,
OFS
.
content_types
...
...
@@ -112,7 +112,7 @@ class NullResource(Persistent, Acquisition.Implicit, Resource):
try
:
return
getattr
(
self
,
name
)
except
:
pass
method
=
REQUEST
.
get
(
'REQUEST_METHOD'
,
'GET'
)
if
method
in
(
'
MKCOL'
,
):
if
method
in
(
'
PUT'
,
'MKCOL'
):
raise
'Conflict'
,
'Collection ancestors must already exist.'
raise
'Not Found'
,
'The requested resource was not found.'
...
...
lib/python/webdav/Resource.py
View file @
6e8f5d10
...
...
@@ -85,7 +85,7 @@
"""WebDAV support - resource objects."""
__version__
=
'$Revision: 1.2
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.2
3
$'
[
11
:
-
2
]
import
sys
,
os
,
string
,
mimetypes
,
davcmds
,
ExtensionClass
from
common
import
absattr
,
aq_base
,
urlfix
,
rfc1123_date
...
...
@@ -115,8 +115,10 @@ class Resource(ExtensionClass.Base):
def
dav__init
(
self
,
request
,
response
):
# Init expected HTTP 1.1 / WebDAV headers which are not
# currently set by the response object automagically.
# Note we set an borg-specific header for ie5 :(
response
.
setHeader
(
'Connection'
,
'close'
,
1
)
response
.
setHeader
(
'Date'
,
rfc1123_date
(),
1
)
response
.
setHeader
(
'MS-Author-Via'
,
'DAV'
)
def
dav__validate
(
self
,
object
,
methodname
,
REQUEST
):
msg
=
'<strong>You are not authorized to access this resource.</strong>'
...
...
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