Re: ***SPAM*** Re: logging & MODPYTHON

2008-03-05 Thread Malcolm Tredinnick
On Wed, 2008-03-05 at 15:54 +0100, Patryk Zawadzki wrote: [...] > Should be as easy as adding: > > imported = False > if imported: > raise Exception, "already imported!" > imported = True > > at the top and reading the traceback? No, because if it's reimported as part of a reload() or __im

Re: ***SPAM*** Re: logging & MODPYTHON

2008-03-05 Thread Patryk Zawadzki
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 ca

Re: ***SPAM*** Re: logging & MODPYTHON

2008-03-05 Thread Malcolm Tredinnick
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 circumsta

Re: ***SPAM*** Re: logging & MODPYTHON

2008-03-05 Thread Thomas Guettler
Graham Dumpleton schrieb: > On Mar 5, 6:56 pm, Thomas Guettler <[EMAIL PROTECTED]> wrote: > >> AndrewD schrieb:> I would like to contribute a general Django logging >> system. I have >> >>> MODPYTHON logging working, & a basic file logging sample. I think most >>> Django users want easy l