#763: exceptions.AttributeError: "'pysqlite2.dbapi2.Connection' object has no
attribute 'autocommit'"
---------------------------------------+------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: anonymous
Type: defect | Status: new
Priority: high | Milestone: 0.9a5
Component: SQLObject | Version: 0.9a4
Severity: normal | Resolution:
Keywords: pysqlite sqlite SQLObject |
---------------------------------------+------------------------------------
Comment (by ghaering):
It seems that the real problem is buried deep inside TurboGears and
results from a lot of magic that gets out of hands:
- the exception is raised because a Transaction object gets garbage-
collected
- the transaction object is stored in a thread-local variable
- at the time the Transaction is garbage-collected, other things it
depends on have already been collected => ERROR
This could be fixed if the transaction object is reset at an appropriate
point in time. For this to happen, I think the AutoConnect/PackageHub must
get an additional method to reset its connections/transactions.
This could be fired when a special function in the ''model'' module has
been called.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/763>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---