incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pe...@apache.org
Subject svn commit: r1420132 - /incubator/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
Date Tue, 11 Dec 2012 12:48:56 GMT
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
 



Mime
View raw message