source: timingandestimationplugin/branches/trac0.11-Permissions/timingandestimationplugin/query_webui.py

Last change on this file was 8107, checked in by Russ Tyndall, 13 years ago

Applied patch to add stylesheet in a better way - version 0.9.4 and 0.9.4b fix #7224

File size: 502 bytes
RevLine 
[2298]1from trac.core import *
[8107]2from trac.web.api import IRequestFilter
3from trac.web.chrome import add_script
[2298]4
5class QueryWebUiAddon(Component):
[8107]6    implements(IRequestFilter)
7               
8    def pre_process_request(self, req, handler):
9        return handler
[2298]10
[8107]11    def post_process_request(self, req, template, data, content_type):
12        if template == 'query.html':
13            add_script(req, req.href.chrome("Billing/query.js"))       
14           
15        return (template, data, content_type)   
Note: See TracBrowser for help on using the repository browser.