From: Ian B. <ia...@co...> - 2004-04-30 15:43:10
|
Philippe Normand wrote: > 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: >> >># SNIP >>from sqlobject import * >>__connection__ = SQLiteConnection('database.db') >>#__connection__ = GadflyConnection('gad.fly.db') >>class Person(SQLObject): >> _connection = __connection__ >> firstName = StringCol() >> middleInitial = StringCol(length=1, default=None) >> lastName = StringCol() >> > > > If you're using sqlobject 0.6 (SVN), use the new URI system: > > __connection__ = dbconnection.connectionForURI('sqlite:///tmp/database.db') > > May it be helpfull to raise some Exception if somebody tries to use > the old system ... I have to look at this more, but the old system is supposed to work, and should continue to work at least for a release or two (or more). |