Graham Dumpleton
grahamd at dscpl.com.au
Tue May 23 16:58:41 EDT 2006
The mod_python startup message in the Apache error log will tell you: [Tue Feb 01 16:08:21 2005] [notice] Apache/2.0.51 (Unix) mod_python/3.1.3 Python/2.3 configured -- resuming normal operations For a crude method, from a command line python run: ~ [510]$ python Python 2.3 (#1, Sep 13 2003, 00:49:11) [GCC 3.3 20030304 (Apple Computer, Inc. build 1495)] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import mod_python.Cookie If you see: ImportError: No module named Cookie Then you are using an old version of mod_python which doesn't have cookie support. Graham On 24/05/2006, at 6:39 AM, jaba at findyourcore.com wrote: > how do i tell what mod_python version im using? > -jared > > >> The answer to this is probably strongly dependent upon your answer to >> Graham's question about mod_python version. The Cookie library was >> implemented in mod_python 3 -- versions before that did not have it. >> >> -jag >> >> On Tue, 2006-05-23 at 12:21 -0400, jaba at findyourcore.com wrote: >>>> >>>> On May 21, 2006, at 4:52 PM, jaba at findyourcore.com wrote: >>>> >>>>> I have two questions: >>>>> 1. is 'return apache.OK' really needed? ive gone without it many >>> times, >>>>> and nothing goes wrong. >>>> >>>> Is it so hard to include it? >>>> >>>>> 2. How do you handle cookies (get,set,etc.)? >>>> >>>> RTFM: http://modpython.org/live/current/doc-html/pyapi-cookie.html >>>> >>>> -jag >>>> >>>> >>> yes, i saw that before, but i cant find were the heck it is! >>> (mod_python needs a new manual) >>> its not in mod_python(from mod_pythno import Cookie) >>> or in util,or in apache. >>> Where is it!?!?! >> >> > > _______________________________________________ > Mod_python mailing list > Mod_python at modpython.org > http://mailman.modpython.org/mailman/listinfo/mod_python
|