From: Ian B. <ia...@co...> - 2004-04-19 16:02:03
|
jws...@ra... wrote: > So this example from the docs would now look like what? > > conn = DBConnection.PostgresConnection('yada') > trans = conn.transaction() > p = Person.get(1, trans) > p.firstName = 'Bob' > trans.commit() > p.firstName = 'Billy' > trans.rollback() That would all be unchanged. Well, the first line could be done differently, like conn = connectionFromURI('postgres://yadayada'), though it should work just like it is as well. Ian |