Commit cbee56f2 authored by Tres Seaver's avatar Tres Seaver

Handle resource files with .htm extention properly as page template resources.

LP #411837
parent fb32c3e9
......@@ -36,6 +36,9 @@ Features Added
Bugs Fixed
++++++++++
- LP #411837: Handle resource files with ``.htm`` extention properly,
as page template resources.
- LP #435728: Fix indentation of OFSP/help/sequence.py docstring.
- LP #574286: Ensure that mailhosts which share a queue directory do not
......
......@@ -132,6 +132,7 @@ class DirectoryResource(Resource, directoryresource.DirectoryResource):
'pt': PageTemplateResourceFactory,
'zpt': PageTemplateResourceFactory,
'html': PageTemplateResourceFactory,
'htm': PageTemplateResourceFactory,
}
default_factory = FileResourceFactory
......
......@@ -92,6 +92,21 @@ Page templates aren't guaranteed to render, so exclude them from the test:
... response = self.publish(base_url % r, basic='manager:r00t')
... self.assertEquals(200, response.getStatus())
>>> print http(r'''
... GET /test_folder_1_/testoid/++resource++fivetest_resources/resource_subdir/resource.htm HTTP/1.1
... Authorization: Basic manager:r00t
... ''')
HTTP/1.1 200 OK
...
<html>
<head>
</head>
<body>
This .html should not have a base tag automatically
added to the header.
</body>
</html>
<BLANKLINE>
We also can traverse into sub-directories:
......
<html>
<head>
</head>
<body>
This .html should not have a base tag automatically
added to the header.
</body>
</html>
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment