Re: mod-python error

2006-03-15 Thread Joseph Barillari
That looks like an SQL error, rather than an MP error. I'd try calling it without MP present (with the same arguments, of course...). Joe On Wed, Mar 15, 2006 at 10:34:00PM +, Patty wrote: > Hi, > I'm really hoping someone can help me understand what is wrong with this piece > of code. > Tha

[jira] Updated: (MODPYTHON-113) PythonImport should use apache.import_module() and not PyImport_ImportModule().

2006-03-15 Thread Graham Dumpleton (JIRA)
[ http://issues.apache.org/jira/browse/MODPYTHON-113?page=all ] Graham Dumpleton updated MODPYTHON-113: --- Attachment: MP113_20060316_grahamd_1.diff Attached "MP113_20060316_grahamd_1.diff" containing proposed changes. This also includes changes to

Re: mod-python error

2006-03-15 Thread Graham Dumpleton
Following may or may not be relevant. BTW, have you tried your sample code outside of context of mod_python. Ie., extract out main bit and run it as command line script. Patty wrote .. > This is the piece of code: > > # Connect to the database > conn = MySQLdb.connect(host = "localhost", user =

mod-python error

2006-03-15 Thread Patty
Hi, I'm really hoping someone can help me understand what is wrong with this piece of code. Thanks, Patty This is how I call my function: http://hostname/mptest/ask.py/ask?host=ahost&target=atarget *** This is the piece o

[jira] Resolved: (MODPYTHON-144) Make apache._server/apace._interpreter part of public API.

2006-03-15 Thread Graham Dumpleton (JIRA)
[ http://issues.apache.org/jira/browse/MODPYTHON-144?page=all ] Graham Dumpleton resolved MODPYTHON-144: Fix Version: 3.3 Resolution: Fixed Problem with apache.main_server not always being main server object fixed by having python_init

[jira] Commented: (MODPYTHON-144) Make apache._server/apace._interpreter part of public API.

2006-03-15 Thread Graham Dumpleton (JIRA)
[ http://issues.apache.org/jira/browse/MODPYTHON-144?page=comments#action_12370492 ] Graham Dumpleton commented on MODPYTHON-144: It is back to apache.main_server after all. This is because although get_options() returns same for req.connection

[jira] Commented: (MODPYTHON-146) ap_internal_fast_redirect() and request object cache

2006-03-15 Thread Graham Dumpleton (JIRA)
[ http://issues.apache.org/jira/browse/MODPYTHON-146?page=comments#action_12370489 ] Graham Dumpleton commented on MODPYTHON-146: The idea of trying to use req->notes to store an ID for the request object to be used will in practice not be able

Re: svn commit: r385992 - in /httpd/mod_python/trunk: lib/python/mod_python/__init__.py src/include/mpversion.h src/mod_python.c

2006-03-15 Thread André Malo
* [EMAIL PROTECTED] wrote: > ** > *handler function for mod_include tag > + * > + *The mod_include tag handler interface changed somewhere > + *between Apache 2.0 and Apache 2.2. Not sure what the > + *official way of detecting change point is, so look for > + *the SSI_CREA