You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by pe...@apache.org on 2012/12/11 13:48:56 UTC

svn commit: r1420132 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py

Author: peter
Date: Tue Dec 11 12:48:55 2012
New Revision: 1420132

URL: http://svn.apache.org/viewvc?rev=1420132&view=rev
Log:
#264 - Whitelabeling/detracify: Default TracError title

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=1420132&r1=1420131&r2=1420132&view=diff
==============================================================================
--- incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Tue Dec 11 12:48:55 2012
@@ -153,7 +153,13 @@ class BloodhoundTheme(ThemeBase):
         # Rename wiki guide links
         tx = tx.end() \
             .select("body//a[contains(@href,'/wiki/%s')]" % wiki.GUIDE_NAME) \
-            .map(lambda text: wiki.new_name(text), TEXT)            
+            .map(lambda text: wiki.new_name(text), TEXT)
+
+        # Rename trac error
+        app_short = req.chrome['labels']['application_short']
+        tx = tx.end() \
+            .select("body//div[@class='error']/h1") \
+            .map(lambda text: text.replace("Trac", app_short), TEXT)            
                     
         return stream | tx