[z3-checkins] r38089 - z3/deliverance/branches/cache_aware/deliverance
ltucker at codespeak.net
ltucker at codespeak.net
Wed Feb 7 19:18:24 CET 2007
Author: ltucker
Date: Wed Feb 7 19:18:22 2007
New Revision: 38089
Modified:
z3/deliverance/branches/cache_aware/deliverance/wsgimiddleware.py
Log:
eliminate notheme from query when passing to subapp
Modified: z3/deliverance/branches/cache_aware/deliverance/wsgimiddleware.py
==============================================================================
--- z3/deliverance/branches/cache_aware/deliverance/wsgimiddleware.py (original)
+++ z3/deliverance/branches/cache_aware/deliverance/wsgimiddleware.py Wed Feb 7 19:18:22 2007
@@ -160,7 +160,11 @@
environ[DELIVERANCE_CACHE] = {}
notheme = 'notheme' in qs
if notheme:
- environ['QUERY_STRING'] = '' # XXX
+ # eliminate the deliverance notheme query argument for the subrequest
+ if qs == 'notheme':
+ environ['QUERY_STRING'] = ''
+ if qs.endswith('¬heme'):
+ environ['QUERY_STRING'] = qs[:-len('¬heme')]
return self.app(environ, start_response)
# unsupported
More information about the z3-checkins
mailing list