[mod_python] Using dbpool in more than one place....

fumanchu fumanchu at aminus.net
Tue Sep 9 16:59:06 EST 2003

Quick response: the message:

Exception exceptions.RuntimeError: 'maximum recursion depth exceeded' in
<function _connection_notinuse at 0x41afbaac> ignored

is most likely due a namespace collision, where you think you're calling
one function and you're really calling another with the same name,
(usually the current function, although parallel recursion has been
known to occur). When using "as", try using unique new names, not
fragments of existing names. So try:

"import jon.dbpool as logger_dbpool" in the log module and
"import jon.dbpool as site_dbpool" in the site module.

Just a thought.

Robert Brewer
fumanchu at aminus.net

More information about the Mod_python mailing list