Re: [SQLObject] More transaction troubles
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
|
From: Randall R. <ra...@ra...> - 2003-09-09 09:36:11
|
On Monday, September 8, 2003, at 09:19 PM, Ian Bicking wrote:
>> Anyway, I haven't got the chance to fairly test whether
>> transactions are working yet, because I'm using Python
>> 2.2, and this SQLObject doesn't work with it. I'll
>> install 2.3 today and retest.
>
> 2.2 should be fine. Are you having a problem with it?
Yes, but it's a known issue with 2.2, which was fixed
sometime later:
>>> NTest(1, trans)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
File "/usr/lib/python2.2/site-packages/SQLObject/SQLObject.py", line
405, in __new__
val._init(id, connection, selectResults)
File "/usr/lib/python2.2/site-packages/SQLObject/SQLObject.py", line
667, in _init
selectResults = self._connection._SO_selectOne(self, dbNames)
File "/usr/lib/python2.2/site-packages/SQLObject/DBConnection.py",
line 416, in __getattr__
meth = new.instancemethod(func, self, self.__class__)
TypeError: instancemethod() argument 3 must be class, not type
Guido mentioned on a mailing list that this was to be fixed
in 2.2.1, but since I had no reason to stay with 2.2.x for
everything, I just installed 2.3.
With Python 2.3, this problem doesn't exist, and everything
works swimmingly.
Thanks!
--
Randall Randall <ra...@ra...>
"When you advocate any government action, you must first
believe that violence is the best answer to the question
at hand." -- Allen Thornton
|