Changeset 1:34f4cf9dcb95 in foldedrepositoryindexplugin


Ignore:
Timestamp:
08.12.2014 14:36:28 (4 years ago)
Author:
Tobias Föhst <foehst@…>
Branch:
default
Phase:
public
Tags:
tip
Message:

Makes XPath in genshi stream filter aware of possible prefix

File:
1 edited

Legend:

Unmodified
Added
Removed
  • folded_repository_index/web_ui.py

    r0 r1  
    5454            return stream 
    5555 
    56         filter = Transformer('//script[@src="/chrome/common/js/expand_dir.js"]') 
     56        script_url = req.href('/chrome/common/js/expand_dir.js') 
     57        filter = Transformer('//script[@src="' + script_url + '"]') 
    5758        return stream | filter.remove() 
Note: See TracChangeset for help on using the changeset viewer.