[mod_python] PythonImport: Can someone please draw a diagram forthis idiot?

Nicolas Lehuen nicolas.lehuen at gmail.com
Wed Sep 14 04:30:12 EDT 2005


Instead of "cur.execute" write "mpglobals.cur.execute".

Or, if mpglobals is really on the sys.path, then you can drop PythonImport 
and write :

from mpglobals import cur # or import * if you want all
cur.execute(...)

Regards,
Nicolas

2005/9/14, jamestmcneill-python at yahoo.co.uk <
jamestmcneill-python at yahoo.co.uk>:
> 
> I suppose I asked for an RTFM. Gosh it would be great to be as clever as
> you. I'm in awe. No really, I mean how could I make such a stupid mistake?
> Even the crassest beginner knows better than that.
> 
> I'll take the hint and unsubscribe, and leave this list to you clever
> people. I hope you're happy together.
> 
> Cheers
> Jim
> 
> --- Lee Brown <administrator at leebrown.org> wrote:
> 
> > No, I won't draw you a picture, but I'll give you a push in the right
> > direction: If you were to use
> >
> > import mpglobals.py
> >
> > In any other ordinary python program, in what namespace would you expect
> > to
> > find the contents of mpglobals?
> >
> >
> > Best Regards,
> > Lee E. Brown
> > (administrator at leebrown.org)
> 
> ++++++++++++++++++++++++++++++++++++++++++++++++++
> + If you've got a good excuse - don't use it +
> ++++++++++++++++++++++++++++++++++++++++++++++++++)
> 
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mm_cfg_has_not_been_edited_to_set_host_domains/pipermail/mod_python/attachments/20050914/14798c80/attachment.html


More information about the Mod_python mailing list