#2192: Mako template loader for non-dotted template names fail to init
------------------------+---------------------------------------------------
Reporter: kikidonk | Owner: faide
Type: defect | Status: new
Priority: normal | Milestone: 2.0b6
Component: TurboGears | Version: trunk
Severity: normal | Keywords:
------------------------+---------------------------------------------------
Mako's TemplateLookup expect module_directory parameter to be a single
item but:
http://trac.turbogears.org/browser/trunk/tg/configuration.py#L313 passes
the list of templates directories from self.paths resulting in an
exception being raised.
The module_directory argument is a single directory where all generated-
modules will be created when a template is compiled by mako.
* A simple fix is to use self.paths['templates'][0] but it might break in
some weird ways when there are multiple templates directories
* Even then, this value should be configurable, because the webserver
might not have write-access to the templates directory created by the egg-
file once deployed
* Also note that when running setup.py bdist_egg if there are any
compiled templates hanging aroung in templates/ they will be included in
the egg file which might not be desirable
Note: you have to use use_dotted_templatenames = False in your config to
hit this bug.
--
Ticket URL: <http://trac.turbogears.org/ticket/2192>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "TurboGears Tickets" group.
This group is read-only. No posting by normal members allowed.
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets?hl=en?hl=en
-~----------~----~----~----~------~----~------~--~---