I have made a subcontroller tblog/tblog/SMSController and I want it to have its own static directory. As I understand it, I should work with register_static_directory, but I can not get it to work. I thought that something like: pkg_path = pkg_resources.resource_filename( 'tblog', os.path.join('SMSController', 'static')) log.info(pkg_path) register_static_directory('tblog.sms.static', pkg_path) log.info(widgets.JSLink('tblog.sms.static', 'javascript/general.js'))
This gives in the logging: 2008-04-28 19:19:42,612 tblog.controllers INFO /srv/www/turbogears/tblog/tblog/SMSController/static 2008-04-28 19:19:42,613 tblog.controllers INFO JSLink(name='javascript/general.js', charset=None, defer=False) But when I try: /sms/static/javascript/general.js I get: Page handler: "The path '/sms/static/javascript/general.js' was not found." Anybody a tip? -- Cecil Westerhof --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to turbogears@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/turbogears?hl=en -~----------~----~----~----~------~----~------~--~---