[SQLObject] connection and transaction
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: jt <jt...@ud...> - 2006-05-29 21:59:02
|
SGVsbG8sCgpJIGhhdmUgYmVlbiB1c2luZyBjb25uZWN0aW9uIGZvciBhIHdoaWxlIHdpdGggdGhp cyBzdGF0ZW1lbnQ6CgppbXBvcnQgc3Fsb2JqZWN0IGFzIHNvCnNvLnNxbGh1Yi5wcm9jZXNzQ29u bmVjdGlvbiA9IHNvLmNvbm5lY3Rpb25Gb3JVUkkodXJpKSAjIHNxbGl0ZQoKV2hlbiBJIGhhdmUg dG8gdXNlIHJhdyBTUUwgSSB1c2UgdGhpcyBmdW5jdGlvbjoKCmRlZiBkYl9xdWVyeSgqYXJncyk6 CiAgICBjID0gc28uc3FsaHViLnByb2Nlc3NDb25uZWN0aW9uLmdldENvbm5lY3Rpb24oKQogICAg dHJ5OgogICAgICAgIGNyID0gYy5jdXJzb3IoKQogICAgICAgIGNyLmV4ZWN1dGUoKmFyZykKICAg ICAgICByZXMgPSBjci5mZXRjaGFsbCgpCiAgICBmaW5hbGx5OgogICAgICAgIHNvLnNxbGh1Yi5w cm9jZXNzQ29ubmVjdGlvbi5yZWxlYXNlQ29ubmVjdGlvbihjKQogICAgcmV0dXJuIHJlcwoKTm93 IEkgaGF2ZSB0byBzcGVlZCB1cCBidWxrIGluc2VydHMvdXBkYXRlcyBhbmQgSSBtYW5hZ2VkIHRv IHVzZSB0cmFuc2FjdGlvbnM6Cgpzby5zcWxodWIucHJvY2Vzc0Nvbm5lY3Rpb24gPSBzby5jb25u ZWN0aW9uRm9yVVJJKHVyaSkudHJhbnNhY3Rpb24oKQoKVGhlIHByb2JsZW0gaXMgdGhhdCBJIGNh biBub3QgdXNlIHRoZSBzYW1lIGZ1bmN0aW9uLiBJIHN1cHBvc2UgdGhhdCBJCmhhdmUgdG8gdHJ5 L2NhdGNoIHRvIGV4cGxpY2l0bHkgY29tbWl0L3JvbGxiYWNrLiBJIHdvdWxkIGxpa2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