[mod_python] mod_python weirdness, maybe related to importing?

Sean Reifschneider jafo at tummy.com
Tue Jun 10 04:58:26 EST 2003


On Tue, Jun 10, 2003 at 12:46:41PM +0200, David Fraser wrote:
>I don't know much about SimpleTAL, but from what you've described, 
>that's where you need to investigate ...

Ugh, yeah, it was happening in the SimpleTAL code where I didn't expect
it to be.  It'd be nice if in debug mode mod_python would throw an
exception or something if you tried adding headers after there had been
a write.

I'm still looking for information on the weird importing issues
though...  One other thing on that front is that to even get started I
found that at the top-level of my main mod_python handler, I had to add:

   from encodings import latin_1
   from encodings import iso8859_1

or I just couldn't use the SimpleTAL code in my handler -- it would fail
related to encodings.  They can't be imported at other times, they
already have to be there.  This seems to be similar in nature to the
weird ness I'm seeing importing my own modules, but I can't find any
mod_python documentation about how import is weird or broken under
mod_python.

Thanks,
Sean
-- 
 Well son, a funny thing about regret is that it's better to regret something
 you HAVE done than regret something you haven't done.
Sean Reifschneider, Inimitably Superfluous <jafo at tummy.com>
tummy.com, ltd. - Linux Consulting since 1995.  Qmail, Python, SysAdmin


More information about the Mod_python mailing list