#2247: TG2 should use pylons.strict_c on by default
--------------------------+-------------------------------------------------
 Reporter:  jorge.vargas  |       Owner:        
     Type:  defect        |      Status:  new   
 Priority:  normal        |   Milestone:  2.0rc1
Component:  TurboGears    |     Version:  2.0b6 
 Severity:  major         |    Keywords:        
--------------------------+-------------------------------------------------
 Currently if you make a mistake (typo or bad name) in your templates
 tmpl_context (aka pylons.c) will return a string of length 0, this is
 specially misleading when working with TW as it will give the error "str
 object not callable"

 Therefore
 {{{
 if asbool(config['debug']):
     config['pylons.strict_c'] = True
 }}}


 or even better simply set it on by default always and let weberror handle
 the AttributeError
 Note: pjenvey said this will be on by default in pylons 1.0

-- 
Ticket URL: <http://trac.turbogears.org/ticket/2247>
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