[mod_python] Persist database conn, or pers. variables - whereI put them ?

Luca Calderano calderano at sgaspa.it
Wed Sep 27 10:06:52 EDT 2006


try this:
(it implies using maxdb as database server)

from mod_python import apache, Session
from maxdb import sql

cnn=sql.connect(user,password,database,'')
req.session['cnn']=cnn
req.session.save()

Bye
Luca
----- Original Message ----- 
From: "durumdara" <durumdara at gmail.com>
To: <mod_python at modpython.org>
Sent: Wednesday, September 27, 2006 3:37 PM
Subject: Re: [mod_python] Persist database conn, or pers. variables - whereI
put them ?


> Terry Macdonald írta:
> > durumdara wrote:
> >> I not fully understand that in this dynamic wwwserver context where I
> >> can put persist objects.
> >> What I can do to keep my objects in the background ?
> > Use a database
> >
>
> Hi !
>
> Sorry, but I don't understand you.
> I cannot store my ODBC connection in a database !
>
> dd
> _______________________________________________
> Mod_python mailing list
> Mod_python at modpython.org
> http://mailman.modpython.org/mailman/listinfo/mod_python


More information about the Mod_python mailing list