#2247: TG2 should use pylons.strict_c on by default
--------------------------+-------------------------------------------------
Reporter: jorge.vargas | Owner:
Type: defect | Status: closed
Priority: high | Milestone: 2.1a2
Component: TurboGears | Version: 2.0b6
Severity: major | Resolution: fixed
Keywords: |
--------------------------+-------------------------------------------------
Comment (by percious):
Comments to be included with RELEASE of 2.1a1:
This change may cause some of your templates to not work any more, because
we are setting the variable that requires your templates to call objects
within the tmpl_context that are there. If a key is not available in the
template you are calling, it _will_ now throw an exception. If you need
an emergency fix to get back and running while you are getting your
templates fixed, you can add this code to your app_cfg.py file:
{{{
from tg.configuration import AppConfig
from pylons import config
class MyAppConfig(AppConfig):
def after_init_config(self):
config['pylons.strict_c'] = False
base_config = MyAppConfig()
}}}
--
Ticket URL: <http://trac.turbogears.org/ticket/2247#comment:3>
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
-~----------~----~----~----~------~----~------~--~---