On 14 April 2010 12:11, Oleg Broytman <p...@phd.pp.ru> wrote:
> On Tue, Apr 13, 2010 at 11:49:47PM +0200, Visgean Skeloru wrote:
> > Hello is it possible to set a specific connections database for each
> class?
>
> Yes. Every SQLObject class has a classmethod setConnection. Call it
> MyTable.setConnection(connection); connection can be a string or an open
> connection (SQLObject's DBConnection, not a Python DB API connection).
> Every method has a connection parameter.
>
> Or you can define your connection directly in the Class as an attribute,
for example:
_connection = connectionRAMdisk
I do not know, if this is the cleanest way, but works great.
Petr
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss