'AutogenContext' object has no attribute '__getitem__'

2015-10-13 Thread Fayaz Yusuf Khan
Hi, Looks like the autogen_context parameter has changed type recently. I'm getting this exception: Traceback (most recent call last): File "/home/fayaz/Programming/weaver-env/bin/weaver", line 9, in load_entry_point('weaver==2.12.1', 'console_scripts', 'weaver')() File "/home/fayaz/Pro

Re: Global variables from inside render_item

2015-09-02 Thread Fayaz Yusuf Khan
ut: This is a global: None This is not a global: On Wednesday, September 2, 2015 at 8:53:21 PM UTC+5:30, Michael Bayer wrote: > > > > On 9/2/15 3:13 AM, Fayaz Yusuf Khan wrote: > > Hi, > I'm seeing this weird issue where several global variables in env.py are > set

Global variables from inside render_item

2015-09-02 Thread Fayaz Yusuf Khan
Hi, I'm seeing this weird issue where several global variables in env.py are set as null when accessed from render_item. Code: env.py def render_item(type_, obj, autogen_context): print globals() Output: {'mysql': None, 'with_statement': None, 'PasswordType': None, 'include_symbol': None, '