Exception when dropping database

0 views
Skip to first unread message

Ben Sizer

unread,
Oct 31, 2006, 2:58:37 PM10/31/06
to TurboGears
If I use "tg-admin sql drop" after having modified the model.py, I get
this message:

Using database URI
sqlite:///E|\code\Python\projects\bandmatch/devdata.sqlite
Exception exceptions.AttributeError: "'pysqlite2.dbapi2.Connection'
object has no attribute 'autocommit'" in <bound method
Transaction.__del__ of <sqlobject.dbconnection.Transaction object at
0x0152D530>> ignored

Surely that can't be a good thing? I should be able to modify a
model.py without it impacting on my ability to later drop tables from
the database. I don't even know if that exception actually means
anything or not.

--
Ben Sizer

Jorge Vargas

unread,
Nov 1, 2006, 10:41:05 AM11/1/06
to turbo...@googlegroups.com
On 10/31/06, Ben Sizer <kyl...@gmail.com> wrote:
>
> If I use "tg-admin sql drop" after having modified the model.py, I get
> this message:
>
> Using database URI
> sqlite:///E|\code\Python\projects\bandmatch/devdata.sqlite
> Exception exceptions.AttributeError: "'pysqlite2.dbapi2.Connection'
> object has no attribute 'autocommit'" in <bound method
> Transaction.__del__ of <sqlobject.dbconnection.Transaction object at
> 0x0152D530>> ignored
>
umm that error is polymorphic http://trac.turbogears.org/turbogears/ticket/763

> Surely that can't be a good thing? I should be able to modify a
> model.py without it impacting on my ability to later drop tables from
> the database. I don't even know if that exception actually means
> anything or not.
>

the way sqlobject-admin works is that it tries to read the tables from
the model file and delete them so if those changed (there is a table
you deleted) you may have a problem

as for why this is actually rendering that error I'm clueless

> --
> Ben Sizer
>
>
> >
>

Reply all
Reply to author
Forward
0 new messages