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
97e3d856
Commit
97e3d856
authored
Jun 09, 2000
by
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed HEAD handling for collections to respect acquired default document
(index_html).
parent
bf654b34
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
lib/python/webdav/Collection.py
lib/python/webdav/Collection.py
+5
-2
No files found.
lib/python/webdav/Collection.py
View file @
97e3d856
...
@@ -85,7 +85,7 @@
...
@@ -85,7 +85,7 @@
"""WebDAV support - collection objects."""
"""WebDAV support - collection objects."""
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.1
7
$'
[
11
:
-
2
]
import
sys
,
os
,
string
,
Globals
import
sys
,
os
,
string
,
Globals
from
common
import
urlfix
,
rfc1123_date
from
common
import
urlfix
,
rfc1123_date
...
@@ -118,7 +118,10 @@ class Collection(Resource):
...
@@ -118,7 +118,10 @@ class Collection(Resource):
def
HEAD
(
self
,
REQUEST
,
RESPONSE
):
def
HEAD
(
self
,
REQUEST
,
RESPONSE
):
"""Retrieve resource information without a response body."""
"""Retrieve resource information without a response body."""
self
.
dav__init
(
REQUEST
,
RESPONSE
)
self
.
dav__init
(
REQUEST
,
RESPONSE
)
if
hasattr
(
self
,
'aq_base'
)
and
hasattr
(
self
.
aq_base
,
'index_html'
):
# Note that we are willing to acquire the default document
# here because what we really care about is whether doing
# a GET on this collection / would yield a 200 response.
if
hasattr
(
self
,
'index_html'
):
if
hasattr
(
self
.
index_html
,
'HEAD'
):
if
hasattr
(
self
.
index_html
,
'HEAD'
):
return
self
.
index_html
.
HEAD
(
REQUEST
,
RESPONSE
)
return
self
.
index_html
.
HEAD
(
REQUEST
,
RESPONSE
)
raise
'Method Not Allowed'
,
(
raise
'Method Not Allowed'
,
(
...
...
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