|
Gregory (Grisha) Trubetskoy
grisha at modpython.org
Mon Jun 20 17:23:03 EDT 2005
What calls the main() function below?
Grisha
On Mon, 20 Jun 2005, amit wrote:
> Hello,
>
> I am using mod_pyton to write a collection of scripts. And I am facing the
> following problem:
> I use the handler to execute a script. And I try to pass the req object to
> it:
>
> def handler(req):
> execfile(req.filename, {'req':req})
>
> in the script I have the following code:
>
> def main():
> req.write('Hello there!')
>
> I know that the script is executed but I don't get the 'hello there!' message
> in my browser. Can anyone help?
>
> Thanks
> Amit
>
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python
>
|