Ticket #2247 (closed defect: fixed)
TG2 should use pylons.strict_c on by default
|Reported by:||jorge.vargas||Owned by:|
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"
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