[mod_python] Error About Mod_python.Publisher

Chris Jackson christopher.jackson at gmail.com
Sun Jun 26 17:30:35 EDT 2005

Try just 

import code.db

then do, 

cur = db.dbInit()...

That way the line "from code import db" does not expect to be an
object or a module with no dbInit() method.

May or may not work, but worth the shot.

~= Chris =~

On 6/25/05, GNULife <gnulife at gmail.com> wrote:
> I wrote some code, and it can return the exact result when I run it in
> python shell. but I when run it in mod_python.publisher, it failed. the
> detail message of error,please open the attachment
> picture(ErrorAboutPublisher.gif).
> _______________________________________________
> 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