How can I close more cursors at the END of my page,
after execute some scripts/functions.
example:
I use one DB connection and 5 cursor actions.
How can I close these connections/actions at the END of my page?
cursor.close() ==> 5 times??
db.close()
--
http://mail.python.org/mailman/listinfo/
I going to use the cgi-handler (mod_python):
http://www.modpython.org/live/mod_python-3.2.2b/doc-html/hand-cgi.html
If I test a simply py script it works
code:
===
print "Content-type: text/html\n"
print """
TEST
"""
But if I test a py script with cgi comments (import
I'm going to work with mod_python.
I install mod_python 3.2.2b for python 2.4.
If i test my install with
mptest.py
see this link:
http://www.modpython.org/live/mod_python-3.2.2b/doc-html/modpython.html
IT WORKS!
But if i try this:
AddHandler mod_python .py
PythonHandler mod_python.publisher
Py
Thanks for your replay.
I put the handler code at the end of the file.
No error!
But if I go to my localhost\project\mptest.py
The code of my function appears.
I solve this by put the following code in the confige file:
AllowOverride FileInfo
--
http://mail.python.org/mailman/listinfo/python-l
Today I was busy to install mod_python.
I have put the line
LoadModule python_module libexec/mod_python.so
into the httpd.conf file.
It Works!
Apache load mod_python /3.2.2.b Python2.4
But my problem is where I have to place te following code in de
httpd.conf?
AddHandler mod_pytho
Thanks for the many replies!
The problem was that is use '%s', i have to use %s and then my problem
is solved.
--
http://mail.python.org/mailman/listinfo/python-list
I know how to insert values in a database.
That's not my problem!
My problem is how i insert NULL values in de mysql-database.
None is een object in Python and NULL not.
None is not converted to NULL?
Table shows None and not NULL!
--
http://mail.python.org/mailman/listinfo/python-list
Python 2.4
MySQL-python.exe-1.2.0.win32-py2.4.zip
How can I insert a NULL value in a table (MySQL-database).
I can't set a var to NULL? Or is there a other possibility?
My var must be variable string or NULL.
Becaus i have a if statement:
if
cursor.execute(".insert NULL