glenfant at NOSPAM.bigfoot.com
Fri Jul 25 17:29:14 CEST 2003
Hmmm an idea...
Perhaps you didn't install MySQL-python-0.9.2 on the python instance that
Did you compile the source by yourself or installed the binary installer.exe
for your Python version ?
"server_capabilities" is defined in a _mysql.so (or .pyd .dll in Windows),
so it's quite difficult to hack a binary compiled C module.
Strange : My windows Zope config works perfectly with a similar config (but
running Zope 2.6.1 and DB server is on a Linux box)
Don't try to write your own DA (tricky job) when your some bits away from
"Don Rivard" <donald_rivard at hotmail.com> a écrit dans le message de news:
ZtydnYXEa-NqpbyiRTvUqg at net1plus.com...
> I know get:
> Error Type: AttributeError
> Error Value: server_capabilities
> Traceback (innermost last):
> a.. Module ZPublisher.Publish, line 49, in publish
> b.. Module ZPublisher.mapply, line 32, in mapply
> c.. Module ZPublisher.Publish, line 38, in call_object
> d.. Module Products.ZMySQLDA.DA, line 102, in manage_addZMySQLConnection
> e.. Module Shared.DC.ZRDB.Connection, line 58, in __init__
> f.. Module Shared.DC.ZRDB.Connection, line 86, in edit
> g.. Module Products.ZMySQLDA.DA, line 120, in connect
> h.. Module Products.ZMySQLDA.db, line 179, in __init__
> AttributeError: server_capabilities
> I'm not sure what server_capabilities really means.
> I will write my own DA for this. Thanks
> "Thomas Güttler" <guettler at thomas-guettler.de> wrote in message
> news:bfobe2$h17es$1 at ID-63505.news.uni-berlin.de...
> > Don Rivard wrote:
> > > zope 2.71b
> > > ZMySQLDA 2.08
> > > MySQL-python-0.9.2
> > > mysql 3.23.55NT
> > >
> > > When I attempt to connect, by creating a Add Z MySQL Database
> > > I set the connection string
> > > to database user password, and i keep getting the following error
> > > Site Error
> > > An error was encountered while publishing this resource.
> > >
> > > Error Type: AttributeError
> > > Error Value: server_capabilities
> > Hi,
> > If you want to see the stacktrace in error messages put
> > <dtml-var error_tb>
> > in the standard_error_message of Zope. This needs to be done
> > trough the web and is very handy for debugging.
> > The stacktrace shows you the file and the line where
> > the error occured. Maybe this helps you to find your problem.
> > thomas
More information about the Python-list