app_globals objects are no longer referenced as
g in pylons (and haven't been for some time), but a lot of our code still tries to import them as such. We have some code that imports them correctly and then monkey patches
g as aliases in pylons, but it doesn't always work when running tests.
The imports should be cleaned up and changed to:
from pylons import tmpl_context as c from pylons import app_globals as g
The bad imports can be found with:
ack 'from pylons import ([cg]|c, *g|g, *c)$'
Log in to post a comment.