Re: [SQLObject] MySQLConnection is deprecated
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ian B. <ia...@co...> - 2004-11-01 21:04:50
|
Nigel King wrote: > I get the following warning on my MySQLConnection > > /usr/local/lib/python2.3/site-packages/sqlobject/__init__.py:23: > DeprecationWarning: MySQLConnection is deprecated; use > connectionForURI("mysql://...") or "from sqlobject.mysql import builder; > MySQLConnection = builder()" > _warn('MySQLConnection is deprecated; use > connectionForURI("mysql://...") or "from sqlobject.mysql import builder; > MySQLConnection = builder()"') > > In the manual it says to use > conn = MySQLConnection(user='test', db='testdb') > which is the method I use. > > What is actually intended? I just haven't reviewed the documentation since then. Though I'm not 100% sure that MySQLConnection and friends should be deprecated. -- Ian Bicking / ia...@co... / http://blog.ianbicking.org |