Question about expression evaluation

2010-11-08 Thread Scott Gould
Hi folks, This is a head-scratcher to me. I occasionally get this error: --- File /var/www/myproj/account/views.py, line 54, in account if request.account.is_instructor and request.account.contact and request.account.contact.relationship.institution_party_number: AttributeError:

Re: Question about expression evaluation

2010-11-08 Thread nn
On Nov 8, 11:17 am, Scott Gould zinck...@gmail.com wrote: Hi folks, This is a head-scratcher to me. I occasionally get this error: ---   File /var/www/myproj/account/views.py, line 54, in account     if request.account.is_instructor and request.account.contact and

Re: Question about expression evaluation

2010-11-08 Thread Jerry Hill
On Mon, Nov 8, 2010 at 11:17 AM, Scott Gould zinck...@gmail.com wrote: ---  File /var/www/myproj/account/views.py, line 54, in account    if request.account.is_instructor and request.account.contact and request.account.contact.relationship.institution_party_number: AttributeError: 'NoneType'

Re: Question about expression evaluation

2010-11-08 Thread Peter Otten
Scott Gould wrote: Hi folks, This is a head-scratcher to me. I occasionally get this error: --- File /var/www/myproj/account/views.py, line 54, in account if request.account.is_instructor and request.account.contact and

Re: Question about expression evaluation

2010-11-08 Thread Scott Gould
Thanks for the ideas, everyone. It's probably obvious that this is in a Django context, and while I do have WSGI configured to multi-thread its processes, there is nothing explicitly shared -- via threading, a multi-user situation, or otherwise -- about this data. It is entirely local to the

Re: Question about expression evaluation

2010-11-08 Thread Peter Otten
Scott Gould wrote: Thanks for the ideas, everyone. It's probably obvious that this is in a Django context, and while I do have WSGI configured to multi-thread its processes, there is nothing explicitly shared -- via threading, a multi-user situation, or otherwise -- about this data. It is

Re: Question about expression evaluation

2010-11-08 Thread Peter Otten
Scott Gould wrote: Thanks for the ideas, everyone. It's probably obvious that this is in a Django context, and while I do have WSGI configured to multi-thread its processes, there is nothing explicitly shared -- via threading, a multi-user situation, or otherwise -- about this data. It is