On Wed, Dec 23, 2009 at 11:15 AM, TiNo <tin...@gmail.com> wrote:
> On Wed, Dec 23, 2009 at 16:53, Bill Freeman <ke1g...@gmail.com> wrote:
>>
>> Are you sure that Lid is defined in this context?  Try putting:
>>
>> import pdb;pdb.set_trace()
>>
>> before the super and check.
>
> As I described, I checked that. The strange thing is, that it is defined as
> ``None``. As are all other imports, as ``datetime``, ``from django.db import
> models``. All these imported libraries and classes, as well as classes
> defined in that file are None for some reason. Quite weird...

Perhaps this is a cyclic Python import issue. I think Python will go
through a file twice, the first time getting names into the scope, and
then a second time to fill in the details. Perhaps you are still in
the middle of importing when you are attempting to use the partially
loaded items.

Another way of looking at this is that an import statement is
atomic... no code will (should) run until all imports have completed,
then the code runs. I would try importing just some parts, or maybe
changing the import order.

Just some ideas. Good luck!

-Doug

> --
>
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To post to this group, send email to django-us...@googlegroups.com.
> To unsubscribe from this group, send email to
> django-users+unsubscr...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/django-users?hl=en.
>

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.


Reply via email to