#95 main sqlobject has broken example on front page

General (125)

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
similar problems.

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


  • Oleg Broytman

    Oleg Broytman - 2005-07-14

    Logged In: YES

    The site is about officialy released version of SQLObject.
    Currently it's version 0.6.1. All your fixes are about the
    later code from SVN.

  • Oleg Broytman

    Oleg Broytman - 2005-07-14
    • status: open --> closed-wont-fix

Log in to post a comment.