The example on the main page,
http://sqlobject.org/#example, is way broken.
You have 'from SQLObject import *'. I had to change it
to 'from sqlobject import *'.
You use MySQLConnection(). I tried SQLiteConnection
('test.db') because i want quick and dirty and sqlite
installs with one or two clicks on windows. However it
gives me a gigantic 'deprecated' message warning to
use instead connectionForURI("sqlite://...").
I changed it to connectionForURI("sqlite://test.db") but
that didn't work either. It told me that i had to instead
use connectionForURI("sqlite:/...") or connectionForURI
I'm assuming someone trying to use mysql would have
Then you have 'p=Person.new(blah blah blah)'. There is
no 'new' method in Person nor in the class it inherits
from, SQLObject. Running this throws an error.
I changed that to p=Person(blah blah blah). However
now it says there is no table 'person'. I guess thats
because you didn't call Person.createTable() first.
You try to call p=Person(1). That should probably be
The longer example in
on 'http://sqlobject.org/docs/SQLObject.html' works fine
but the main one on the main page, like I said, is way
Log in to post a comment.