#2395: Mako bytecode caching only works when use_dotted_templatenames = False
----------------------------+-----------------------------------------------
 Reporter:  seedifferently  |        Owner:  lmacken 
     Type:  defect          |       Status:  reopened
 Priority:  high            |    Milestone:  2.1b2   
Component:  TurboGears      |      Version:  trunk   
 Severity:  normal          |   Resolution:          
 Keywords:                  |  
----------------------------+-----------------------------------------------
Comment (by lambacck):

 lmacken's comment applies to all Mako template caching and not just dotted
 names since we copied the behaviour of attempting to pick a suitable
 location from the non-dotted method.

 I think that defaulting to explicit location is a good idea in general,
 because most users are going to want to have the compiled templates cached
 if only to assist with debugging. This means a better experience for new
 TG + Mako developers.

 With the current code I don't think there is anyway to avoid writing the
 templates somewhere to disk (what happens when the process does not have
 write permissions?), so we might want to make no caching of templates an
 option at some point in the future. We might want to let
 "`templating.mako.compiled_templates_dir = None`"
 mean "don't cache the templates" or let the option be more explicit and
 don't cache the templates to disk unless a valid path is provided (maybe
 log a warning if there is a problem with the path).

 In TG1, the equivalent of templating.mako.compiled_templates_dir defaulted
 to makotemplates (or something similar) in the development.ini but the
 line was commented out. If it was commented out then no template modules
 were written to disk.

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2395#comment:8>
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

Reply via email to