[Checkins]
SVN: megrok.responseheaders/trunk/megrok/responseheaders/headers.py
Make megrok.responseheaders work with the grok trunk: you now
need to bind the directives.
Philipp von Weitershausen
philikon at philikon.de
Wed Jun 4 09:25:44 EDT 2008
Log message for revision 87141:
Make megrok.responseheaders work with the grok trunk: you now need to bind the directives.
Changed:
U megrok.responseheaders/trunk/megrok/responseheaders/headers.py
-=-
Modified: megrok.responseheaders/trunk/megrok/responseheaders/headers.py
===================================================================
--- megrok.responseheaders/trunk/megrok/responseheaders/headers.py 2008-06-04 13:23:24 UTC (rev 87140)
+++ megrok.responseheaders/trunk/megrok/responseheaders/headers.py 2008-06-04 13:25:44 UTC (rev 87141)
@@ -47,13 +47,13 @@
@grok.subscribe(grok.View, IBeforeTraverseEvent)
def handle(app, event):
- cache_control = http_cache_control.get(app) # None or {'days'...}
+ cache_control = http_cache_control.bind().get(app) # None or {'days'...}
if cache_control:
assert isinstance(cache_control, dict)
for key, value in get_cache_headers(cache_control).items():
event.request.response.setHeader(key, value)
- content_type = http_content_type.get(app)
+ content_type = http_content_type.bind().get(app)
charset = getattr(app, 'http_content_type_charset', 'utf-8')
if content_type:
if charset:
More information about the Checkins
mailing list