[mod_python] Serius problem in mod_python-3.2.2b

Nicolas Lehuen nicolas.lehuen at gmail.com
Wed Oct 19 05:04:35 EDT 2005

No, it's not a bug, it's a feature. In the new publisher, published module
are no longer stored in sys.modules and the __name__ attribute of the module
is based on the filename.

Why is this a problem to you ? Giving the published module a simpler name is
not that complicated, but I need to understand why it's important.
Especially, if it is because you expect to be able to import the module by
name from another module, tell me because things will change in the future
mod_python releases.


2005/10/19, Manera, Villiam <vmanera at manord.com>:
> I Installed the beta from mod_python-3.2.2b.win32-py2.4.exe
> Apache has started well
> In my login program, the first checked, I use the python variable
> __name__ and this is the problem:
> In early mod_python version the value was as
> expetded:-->cgi-mpy_login<---Module name
> In this beta:-->D_discoE_script_cgi_cgi_mpy_cgi_mpy_login_py <---Module
> name
> Why mod python change the python variable __name__ ?????
> I hope this is a bug
> Villiam
> Italy
> _______________________________________________
> 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/20051019/01f8767b/attachment-0001.html

More information about the Mod_python mailing list