Hi, I'm working on a very light-duty plugin that would add configuration options to allow inclusion of JavaScript files from a project's htdocs directory.
For a little more detail on the plugin I'm trying to create, see my own trac-hack request here: http://trac-hacks.org/ticket/734 My plugin looks like this: class SysJsModule(Component): """A system-wide JavaScript provider.""" implements(IRequestFilter) # IRequestFilter methods def pre_process_request(self, req, handler): return handler def post_process_request(self, req, template, content_type): global_scripts = Configuration.getlist(self.config, 'sysjs', 'global') for script in global_scripts: add_script(req, 'common/js/sysjs/'+script) local_scripts = Configuration.getlist(self.config, 'sysjs', 'local') for script in local_scripts: add_script(req, 'site/js/'+script) return (template, content_type) Based on what I can tell from searching through changelogs, etc, Trac 0.10b1 added support for referencing static files in the htdocs directory using Wiki links like htdocs:mystaticfile.txt However, I don't seem to be able to load up a JavaScript file from there. My plugin is successfully adding the script tags the way I want it to ... it's just that the files themselves are not being served properly. Is there a way around this? Or do I have to solve this through web server configuration (URL aliasing, etc.)? Thanks, Clay -- Killersoft.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/trac-users -~----------~----~----~----~------~----~------~--~---
