[mod_python] default function?

dannoritzer at web.de dannoritzer at web.de
Sat Feb 21 09:05:08 EST 2004


Michael,

If you call mycode.py the function mycode.py/index is called, if you 
implemented it in mycode.py.

However, I am not so experienced to know whether you can change the name 
of this default function.

Guenter



Michael wrote:

> I'm trying to use mod_python for the first time.. using Publisher. How 
> do you set the default function to use? ie it seems mycode.py/doit runs 
> the doit function. How would you make a function to run if someone just 
> tries to use mycode.py ?
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
> 


More information about the Mod_python mailing list