Gregory Trubetskoy
grisha at modpython.org
Thu Jan 18 22:48:25 EST 2001
You can always raise an error if you need to exit immeditely: raise apache.SERVER_ERROR, apache.HTTP_FORBIDDEN or something like that. -- Gregory (Grisha) Trubetskoy grisha at modpython.org On Thu, 18 Jan 2001, Kevin Lindsay wrote: > How does one exit from a script called from mod_python? > > As an example, I am in the middle of a function and I want > to call an error function and have the script stop as if it > had returned from the handler function wth 'return apache.OK' > > I can't seem to find anything in the docs, unless I'm > missing something. > > Any help is appreciated. :) > > ------------------------------------------------ > Kevin Lindsay <klindsay at debian.org> > Debian Developer > 81E 58A3 B49A 580E EE3D 8CF0 519A 55F0 746C 51F4 > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://www.modpython.org/mailman/listinfo/mod_python >
|