I've recently installed Zope (2.3.1) on Python (2.0) and MySQLdb (0.3.5) and ZMySQLDA (2.0.5) and everything seems to work just fine.
My problem is that whenever I make, for example, SQL errors I allways get the same confusing backtrace (see below) from Zope. (I get the same traceback for ZSQL methods as I get from the test tab on the database connection)
Is there any way to get more information of what went wrong?
I use SuSE Linux 7.0 but I get the same result on my Windows box.
/ Johan
---- 8< ----
Zope Error
Zope has encountered an error while publishing this resource.
exceptions.AttributeError
Sorry, a Zope error occurred.
Traceback (innermost last):
File C:\Program\WebSite\lib\python\ZPublisher\Publish.py, line 223, in publish_module
File C:\Program\WebSite\lib\python\ZPublisher\Publish.py, line 179, in publish
File C:\Program\WebSite\lib\python\Zope\__init__.py, line 240, in abort
File C:\Program\WebSite\lib\python\ZODB\Transaction.py, line 179, in abort
File C:\Program\WebSite\lib\python\Shared\DC\ZRDB\TM.py, line 126, in abort
File C:\Program\WebSite\lib\python\Shared\DC\ZRDB\TM.py, line 119, in _abort
AttributeError: rollback
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I've recently installed Zope (2.3.1) on Python (2.0) and MySQLdb (0.3.5) and ZMySQLDA (2.0.5) and everything seems to work just fine.
My problem is that whenever I make, for example, SQL errors I allways get the same confusing backtrace (see below) from Zope. (I get the same traceback for ZSQL methods as I get from the test tab on the database connection)
Is there any way to get more information of what went wrong?
I use SuSE Linux 7.0 but I get the same result on my Windows box.
/ Johan
---- 8< ----
Zope Error
Zope has encountered an error while publishing this resource.
exceptions.AttributeError
Sorry, a Zope error occurred.
Traceback (innermost last):
File C:\Program\WebSite\lib\python\ZPublisher\Publish.py, line 223, in publish_module
File C:\Program\WebSite\lib\python\ZPublisher\Publish.py, line 179, in publish
File C:\Program\WebSite\lib\python\Zope\__init__.py, line 240, in abort
File C:\Program\WebSite\lib\python\ZODB\Transaction.py, line 179, in abort
File C:\Program\WebSite\lib\python\Shared\DC\ZRDB\TM.py, line 126, in abort
File C:\Program\WebSite\lib\python\Shared\DC\ZRDB\TM.py, line 119, in _abort
AttributeError: rollback
Try the current CVS version, or wait for 2.0.6 (maybe later today). You evidently have a MySQL server that is capable of transactions.