incubator-bloodhound-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Apache Bloodhound" <>
Subject Re: [Apache Bloodhound] #39: Disable old Trac CSS files
Date Fri, 20 Apr 2012 18:09:23 GMT
#39: Disable old Trac CSS files
  Reporter:  jdreimann  |      Owner:  nobody
      Type:  task       |     Status:  new
  Priority:  critical   |  Milestone:  RC1 for initial release
 Component:  ui design  |    Version:
Resolution:             |   Keywords:

Comment (by gjm):

 If we are only removing trac provided common/css/*.css we could probably
 do this using the post_process_request of an IRequestFilter in the
 bloodhound theme. This way we would not have to change trac itself, which
 would be good.

 I believe something like this could do the job:
 links ='links',{})
 indices = [i for (i,ss) in enumerate(links.get('stylesheet',[]))
            if ss.get('href').startswith(req.base_path +
 for i in indices:
     del links['stylesheet'][i]

 This is based on how the theme engine code does the job, though a fair bit
 more condensed.

Ticket URL: <>
Apache Bloodhound <>
The Apache Bloodhound (incubating) issue tracker

View raw message