You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bloodhound.apache.org by gj...@apache.org on 2013/04/10 17:47:27 UTC

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

Author: gjm
Date: Wed Apr 10 15:47:27 2013
New Revision: 1466530

URL: http://svn.apache.org/r1466530
Log:
reduce stringency of the trac stylesheet path test to allow trac css to be excluded from products - #499

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

Modified: bloodhound/trunk/bloodhound_theme/bhtheme/theme.py
URL: http://svn.apache.org/viewvc/bloodhound/trunk/bloodhound_theme/bhtheme/theme.py?rev=1466530&r1=1466529&r2=1466530&view=diff
==============================================================================
--- bloodhound/trunk/bloodhound_theme/bhtheme/theme.py (original)
+++ bloodhound/trunk/bloodhound_theme/bhtheme/theme.py Wed Apr 10 15:47:27 2013
@@ -280,10 +280,10 @@ class BloodhoundTheme(ThemeBase):
             if self.disable_all_trac_css:
                 stylesheets = links.get('stylesheet',[])
                 if stylesheets:
-                    path = req.base_path + '/chrome/common/css/'
+                    path = '/chrome/common/css/'
                     _iter = ([ss, ss.get('href', '')] for ss in stylesheets)
                     links['stylesheet'] = [ss for ss, href in _iter 
-                            if not href.startswith(path) or
+                            if not path in href or
                             href.rsplit('/', 1)[-1] in self.BLOODHOUND_KEEP_CSS]
             template, modifier = self.BLOODHOUND_TEMPLATE_MAP.get(
                     template, (template, None))