Commits

pe...@13f79535-47bb-0310-9956-ffa450edef68  committed 1deeddf

#264 - Whitelabeling/detracify: Default TracError title

  • Participants
  • Parent commits 1603994

Comments (0)

Files changed (1)

File bhtheme/theme.py

         # 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