On Wed, Mar 5, 2008 at 3:40 PM, Malcolm Tredinnick
<[EMAIL PROTECTED]> wrote:
>
>
>  On Wed, 2008-03-05 at 15:32 +0100, Thomas Guettler wrote:
>  [...]
>
> > No, it gets imported more then once: (Answer of Malcolm):
>  > http://www.mail-archive.com/[EMAIL PROTECTED]/msg39061.html
>
>  Read that carefully and you'll see the answer I have was "maybe, I'm not
>  sure" and it's only in some circumstances. I haven't done the analysis
>  to work out if we do reimport as part of the modpython path, although I
>  can't think why it would be reimporting.
>
>  Somebody who cares to know about this should feel free to roll up their
>  sleeves and investigate.

Should be as easy as adding:

imported = False
if imported:
    raise Exception, "already imported!"
imported = True

at the top and reading the traceback?

-- 
Patryk Zawadzki
PLD Linux Distribution

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

Reply via email to