On Aug 16, 2007, at 10:01 AM, Paul McNett wrote:

>>   File "/usr/lib/python2.5/site-packages/dabo/db/dCursorMixin.py",  
>> line
>> 2022, in _setAutoCommit
>>     self.BackendObject.setAutoCommitStatus(self, val)
>>   File "/usr/lib/python2.5/site-packages/dabo/db/dBackend.py",  
>> line 211,
>> in setAutoCommitStatus
>>     raise ValueError, "Can't set AutoCommit to True for this  
>> backend."
>> ValueError: Can't set AutoCommit to True for this backend.
>
> Thanks for answering this. If I understand Ed correctly, this  
> shouldn't
> be happening: you should be able to set AutoCommit to True, since
> setting it to True will keep Dabo from issuing begin, commit, and  
> rollback.

        All this means is that the generic code in dBackend.py, which  
assumes the common case of a connection object having an 'autocommit 
()' method, doesn't apply to the backend in question. The problem is  
that the backend-specific code, in this case dbFirebird.py, should be  
overriding setAutoCommitStatus() to use Firebird-specific calls.

-- Ed Leafe
-- http://leafe.com
-- http://dabodev.com




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to