Ed Leafe wrote:
> On Sep 30, 2010, at 5:49 PM, Jim Byrnes wrote:
>
>> I am handcoding a Dabo app. When  I run it I get the following
>> error:
>>
>> Traceback (most recent call last): File "dMask.py", line 66,
>> in<module> testBizobj = TestBizobj(conn) File
>> "/usr/local/lib/python2.6/dist-packages/dabo/biz/dBizobj.py", line
>> 51, in __init__ self.setConnection(conn) File
>> "/usr/local/lib/python2.6/dist-packages/dabo/biz/dBizobj.py", line
>> 129, in setConnection self.dbapiCursorClass =
>> self._cursorFactory.getDictCursorClass() AttributeError:
>> 'sqlite3.Connection' object has no attribute 'getDictCursorClass'
>>
>> Version info: Platform: GTK Python Version: 2.6.5 on linux2 Dabo
>> Version: Version 0.9.2; Revision ~5924 UI Version: 2.8.11.0 on
>> wxGTK (gtk2)
>>
>> Sqlite3 was installed with Ubuntu Lucid so it should be version
>> 3.6.22-1
>
>
> The error has nothing to do with Sqlite; it's in the dConnection
> class (which is the bizobj's _cursorFactory). My guess is that you
> are using a plain connection to the database, and not a Dabo
> dConnection.
>
> Can you show me the code where the 'conn' in the dMask.py code is
> defined?
>
>
>
> -- Ed Leafe
No need for the code, you are correct.  I can connect using dConnection. 
I was looking at and possibly misunderstanding an example I found that 
was written in 2008.

Thanks,  Jim
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: http://leafe.com/archives/byMID/[email protected]

Reply via email to