Just Launched: You can now import projects and releases from Google Code onto SourceForge
We are excited to release new functionality to enable a 1-click import from Google Code onto the Allura platform on SourceForge. You can import tickets, wikis, source, releases, and more with a few simple steps. Read More
From: Alan Franzoni <alan.xyz@gm...> - 2006-01-31 15:08:37
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 <alan.franzoni.xyz@...>
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