#928: tg-admin sql create throws exception on simple todolist tutorial using
sqlite
-----------------------+----------------------------------------------------
Reporter: anonymous | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone:
Component: SQLObject | Version: 0.9a6
Severity: major | Keywords:
-----------------------+----------------------------------------------------
'''Environment'''
Ubuntu Hoary GNU/Linux, Python 2.4.1, TurboGears 0.9a6
'''Steps to Reproduce'''
* Follow along with
http://www.turbogears.org/preview/docs/tutorials/todolist/
* Use the suggested model:
{{{
class User(SQLObject):
email = StringCol(alternateID=True)
lists = MultipleJoin('List')
class List(SQLObject):
title = UnicodeCol(notNone=True)
user = ForeignKey('User')
items = MultipleJoin('Item')
class Item(SQLObject):
value = UnicodeCol(notNone=True)
list = ForeignKey('List')
}}}
* run tg-admin:
{{{
[EMAIL PROTECTED]:~/src/turbogears/myproject$ tg-admin sql create
}}}
'''Expected Results:'''
No errors
'''Observed Results:'''
{{{
Using database URI
sqlite:///home/rsb/src/turbogears/myproject/devdata.sqlite
Exception exceptions.AttributeError: "'NoneType' object has no attribute
'releaseConnection'" in <bound method Transaction.__del__ of
<sqlobject.dbconnection.Transaction object at 0xb74cffec>> ignored
}}}
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/928>
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
-~----------~----~----~----~------~----~------~--~---