[mod_python] I need advice, please...

Javier Quinteros jquinte at fadu.uba.ar
Thu May 2 18:31:05 EST 2002


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi !!!
I have seen an example in the FAQ to share the connection to the Database 
between many modules using a global variable. I was trying to do the same but 
I realize that a new connection is established every time I click a link. All 
works fine until all the job is done and I return apache.OK. After that, the 
variable holding my DB Connection seems to get lost and I have to connect 
again. Someone told me that I should use any module that let me share memory. 
That's ok and I've done that too, but everyone uses pickle to convert the 
object to a string. The matter is that Connection Objects cannot be converted 
by pickle. Does any of you have any idea, please?

- -- 
- ---------------------------------
Javier Quinteros
jquinte at fadu.uba.ar
Secretaría de Planificación
Universidad de Buenos Aires
- ---------------------------------
Existe un solo lugar donde el Norte y el Sur del mundo se enfrentan en
igualdad de condiciones: es una cancha de fútbol de Brasil, en la 
desembocadura
del río Amazonas. La línea del ecuador corta por la mitad el estadio Zerao, en
Amapá, de modo que cada equipo juega un tiempo en el sur y otro tiempo en el
norte.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE80bAadBzRnlFl4cgRAvdkAKC3jI734xIwvVPOR0Fh5Jd5nIT6xgCgqLay
ry5lDNqh+XaV01ee7WSSO0k=
=x9WS
-----END PGP SIGNATURE-----



More information about the Mod_python mailing list