incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pe...@apache.org
Subject svn commit: r1439270 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
Date Mon, 28 Jan 2013 06:27:04 GMT
Author: peter
Date: Mon Jan 28 06:27:04 2013
New Revision: 1439270

URL: http://svn.apache.org/viewvc?rev=1439270&view=rev
Log:
Request postprocessing needs to take place for error pages (#330)

Modified:
    incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py

Modified: incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
URL: http://svn.apache.org/viewvc/incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1439270&r1=1439269&r2=1439270&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Mon Jan 28 06:27:04 2013
@@ -16,6 +16,8 @@
 #  specific language governing permissions and limitations
 #  under the License.
 
+import sys
+
 from genshi.builder import tag
 from genshi.core import TEXT
 from genshi.filters.transform import Transformer
@@ -214,7 +216,7 @@ class BloodhoundTheme(ThemeBase):
         """Post process request filter.
         Removes all trac provided css if required"""
         
-        if template is None and data is None:
+        if template is None and data is None and sys.exc_info() == (None, None, None):
             return template, data, content_type
         
         def is_active_theme():



Mime
View raw message