Ticket #9462: shared_htdocs.patch
| File shared_htdocs.patch, 1.6 KB (added by itamaro, 2 years ago) |
|---|
-
trac/trac/web/chrome.py
208 208 """ 209 209 210 210 def get_navigation_items(req): 211 """Should return an iterable object over the list of navigation items to212 add, each being a tuple in the form (category, name, text).211 """Should return an iterable object over the list of navigation items 212 to add, each being a tuple in the form (category, name, text). 213 213 """ 214 214 215 215 216 216 class ITemplateProvider(Interface): 217 217 """Extension point interface for components that provide their own 218 ClearSilvertemplates and accompanying static resources.218 Genshi templates and accompanying static resources. 219 219 """ 220 220 221 221 def get_htdocs_dirs(): … … 264 264 265 265 (''since 0.11'')""") 266 266 267 shared_htdocs_dir = PathOption('inherit', 'htdocs_dir', '', 268 """Path to the //shared htdocs directory//. 269 270 Static resources in that directory are mapped to /chrome/shared 271 under the environment URL, in addition to common and site locations. 272 273 (''since 0.12.1'')""") 274 267 275 auto_reload = BoolOption('trac', 'auto_reload', False, 268 276 """Automatically reload template files after modification.""") 269 277 … … 451 459 452 460 def get_htdocs_dirs(self): 453 461 return [('common', pkg_resources.resource_filename('trac', 'htdocs')), 462 ('shared', self.shared_htdocs_dir), 454 463 ('site', self.env.get_htdocs_dir())] 455 464 456 465 def get_templates_dirs(self):
