Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #928 (closed defect: fixed)

Opened 13 years ago

Last modified 12 years ago

tg-admin sql create throws exception on simple todolist tutorial using sqlite

Reported by: anonymous Owned by: anonymous
Priority: normal Milestone:
Component: SQLObject Version:
Severity: major Keywords:



Ubuntu Hoary GNU/Linux, Python 2.4.1, TurboGears 0.9a6

Steps to Reproduce

  • 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:
rsb@tiny:~/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

Change History

comment:1 Changed 13 years ago by jorge.vargas

  • Status changed from new to closed
  • Version 0.9a6 deleted
  • Resolution set to fixed

this is a case of mix in sqlobject please see #297

so far it affects all versions of TG.

I'm going to close this and merge the docs request with #481

Note: See TracTickets for help on using tickets.