Morning,
Having stepped away from TG for a bit after having only glanced at it,
I'm probably a little confused, so bear with me please :)
pysqlite ver 2.3.2, SQLite ver 3.3.6 under Windows XP, TG 0.9a6
download
The problem lies when defining joins in the model. MultipleJoin,
SingleJoin and RelatedJoin all generate the same error when running
"tg-admin sql create" from the root of my project.
Using database URI sqlite:/sitedb.sqlite
Exception exceptions.AttributeError: "'pysqlite2.dbapi2.Connection'
object has no attribute 'autocommit'" in <bound method
Transaction.__del__ of <sqlobject.dbconnection.Transaction object at
0x01476E30>> ignored
When this happens the database is created sans tables. Although, if I
comment out join statements everything works fine, including table
creation. As a way of of example here's what the table would look like:
class Table1(SQLObject):
aname = StringCol()
ajoin = MultipleJoin('Table2')
class Table2(SQLObject):
asomething = StringCol()
This used to work when I had the original installation, and even did
when using Linux. Although under this installation it does not, which
would apparently point to a 'configuration issue', rtfm right? Except,
I can useful SQLObject fine from within the python shell. And, as far
as I can tell my package versions are all up-to-date, and my
configuration is fine since it is finding the database it's just not
able to apparently use the Transaction object with it when joins are
defined?
Any heads up would be useful, thank you.
Nathan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" 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
-~----------~----~----~----~------~----~------~--~---