Hello, I need changing the connection on existing SO instances, mostly to
use transactions. If I do something like this:

SOinst._connection = transaction

Do I break anything? Or is there any risk the _connection attribute won't
be available anymore in future SO releases?

It seems to work, and the only alternative seems to be something that
involves refetching data from the DB like:

newSOinst = SOinst.__class__.get(SOinst.id, transaction)

which requires me to create a new SOobject as well.

-- 
Alan Franzoni <[EMAIL PROTECTED]>
-
Togli .xyz dalla mia email per contattarmi.
To contact me, remove .xyz from my email address.
-
GPG Key Fingerprint:
5C77 9DC3 BD5B 3A28 E7BC 921A 0255 42AA FE06 8F3E



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
sqlobject-discuss mailing list
sqlobject-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sqlobject-discuss

Reply via email to