[Mpuls-commits] r3252 - in base/trunk: . mpulsweb/lib
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Tue Jul 27 19:12:27 CEST 2010
Author: bh
Date: 2010-07-27 19:12:25 +0200 (Tue, 27 Jul 2010)
New Revision: 3252
Modified:
base/trunk/ChangeLog
base/trunk/mpulsweb/lib/db.py
Log:
* mpulsweb/lib/db.py (PostgresDBInterface.do_rollback)
(PostgresDBInterface.do_commit): New methods to comply with
changes in the libformed database interface.
Requires libformed revision 192:bbeaeca49470
Modified: base/trunk/ChangeLog
===================================================================
--- base/trunk/ChangeLog 2010-07-27 13:43:09 UTC (rev 3251)
+++ base/trunk/ChangeLog 2010-07-27 17:12:25 UTC (rev 3252)
@@ -1,3 +1,10 @@
+2010-07-27 Bernhard Herzog <bh at intevation.de>
+
+ * mpulsweb/lib/db.py (PostgresDBInterface.do_rollback)
+ (PostgresDBInterface.do_commit): New methods to comply with
+ changes in the libformed database interface.
+ Requires libformed revision 192:bbeaeca49470
+
2010-07-27 Torsten Irländer <torsten.irlaender at intevation.de>
* mpulsweb/public/styles/all.css,
Modified: base/trunk/mpulsweb/lib/db.py
===================================================================
--- base/trunk/mpulsweb/lib/db.py 2010-07-27 13:43:09 UTC (rev 3251)
+++ base/trunk/mpulsweb/lib/db.py 2010-07-27 17:12:25 UTC (rev 3252)
@@ -152,5 +152,17 @@
else:
cur.close()
+ def do_rollback(self):
+ # if self.connection is still None, no cursor was acquired and
+ # there's nothing to do, actually.
+ if self.connection is not None:
+ self.connection.rollback()
+ def do_commit(self):
+ # if self.connection is still None, no cursor was acquired and
+ # there's nothing to do, actually.
+ if self.connection is not None:
+ self.connection.commit()
+
+
# vim:set ts=4 sw=4 si et sta sts=4 fenc=utf8:
More information about the Mpuls-commits
mailing list