[Checkins] SVN: five.grok/branches/view-of-view/src/five/grok/components.py to enable HEAD as a view, ZPublisher require the HEAD method has to be define on the view (cf ZPublisher.BaseRequest.BaseRequest:484)
Jean-Francois Roche
jfroche at jfroche.be
Mon Jul 25 11:43:57 EDT 2011
Log message for revision 122345:
to enable HEAD as a view, ZPublisher require the HEAD method has to be define on the view (cf ZPublisher.BaseRequest.BaseRequest:484)
Changed:
U five.grok/branches/view-of-view/src/five/grok/components.py
-=-
Modified: five.grok/branches/view-of-view/src/five/grok/components.py
===================================================================
--- five.grok/branches/view-of-view/src/five/grok/components.py 2011-07-25 15:41:05 UTC (rev 122344)
+++ five.grok/branches/view-of-view/src/five/grok/components.py 2011-07-25 15:43:57 UTC (rev 122345)
@@ -91,7 +91,12 @@
return view
raise NotFound(self, name, request)
+ # to enable HEAD as a view, ZPublisher require the HEAD method
+ # to be define on the view (cf ZPublisher.BaseRequest.BaseRequest:484)
+ def HEAD(self, request, response):
+ pass
+
class ViewAwareZopePageTemplate(ZopePageTemplate):
def pt_getEngine(self):
More information about the checkins
mailing list