|
From: Philippe N. <sw...@fr...> - 2004-04-28 19:29:34
|
On Wed, Apr 28, 2004 at 06:28:00PM +0200, Marek Kubica wrote:
> I've checked out the newest revision (105) and I tried this script:
>=20
> # SNIP
> from sqlobject import *
> __connection__ =3D SQLiteConnection('database.db')
> #__connection__ =3D GadflyConnection('gad.fly.db')
> class Person(SQLObject):
> _connection =3D __connection__
> firstName =3D StringCol()
> middleInitial =3D StringCol(length=3D1, default=3DNone)
> lastName =3D StringCol()
>=20
If you're using sqlobject 0.6 (SVN), use the new URI system:
__connection__ =3D dbconnection.connectionForURI('sqlite:///tmp/database.db=
')
May it be helpfull to raise some Exception if somebody tries to use
the old system ...
--=20
Philippe Normand
|