Re: [SQLObject] Re: Help with unicode and sqlobject/pysqlite2
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Kevin D. <da...@gm...> - 2005-09-28 14:46:40
|
On 9/28/05, Qvx 3000 <qv...@gm...> wrote: > db_file =3D os.path.abspath('tel.db').replace(':','|') > conn_string =3D 'sqlite:/' + db_file > conn =3D connectionForURI(conn_string) > conn.autoCommit =3D False > conn2 =3D conn.transaction() > sqlhub.threadConnection =3D conn2 This works fine but will have problems (at present) if your program is multithreaded. If you're only running on one thread, no problem. Kevin -- Kevin Dangoor Author of the Zesty News RSS newsreader email: ki...@bl... company: http://www.BlazingThings.com blog: http://www.BlueSkyOnMars.com |