Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Setting 'X-Theme-Disabled' header in ListingView response for HTML fr…

…agment
  • Loading branch information...
commit 0b9bc135c75bc80be78e2982d7416d8cc89f71ca 1 parent 168bc63
@lukasgraf lukasgraf authored
Showing with 6 additions and 0 deletions.
  1. +3 −0  docs/HISTORY.txt
  2. +3 −0  ftw/tabbedview/browser/listing.py
View
3  docs/HISTORY.txt
@@ -5,6 +5,9 @@ Changelog
3.2.3 (unreleased)
------------------
+- Setting 'X-Theme-Disabled' header in ListingView response for HTML fragment
+ [lgraf]
+
- Added 'ajax_load' parameter to listing request.
[lgraf]
View
3  ftw/tabbedview/browser/listing.py
@@ -109,6 +109,9 @@ def __call__(self, *args, **kwargs):
else:
self.contents = [{}, ]
self.load_request_parameters()
+ # We're returning a HTML *fragment*, therefore prevent
+ # Diazio from theming it
+ self.request.response.setHeader('X-Theme-Disabled', 'True')
return self.template()
self.update()
Please sign in to comment.
Something went wrong with that request. Please try again.