From 935a34173cd396689177055ca705e3ec31a66d8b Mon Sep 17 00:00:00 2001 From: adustman Date: Fri, 6 Apr 2001 21:25:13 +0000 Subject: [PATCH] Transaction fixes. --- ZMySQLDA/lib/python/Products/ZMySQLDA/DA.py | 1 - .../Products/ZMySQLDA/connectionStatus.dtml | 45 ------------------- ZMySQLDA/lib/python/Products/ZMySQLDA/db.py | 4 +- 3 files changed, 2 insertions(+), 48 deletions(-) delete mode 100644 ZMySQLDA/lib/python/Products/ZMySQLDA/connectionStatus.dtml diff --git a/ZMySQLDA/lib/python/Products/ZMySQLDA/DA.py b/ZMySQLDA/lib/python/Products/ZMySQLDA/DA.py index 820bae1..225f780 100644 --- a/ZMySQLDA/lib/python/Products/ZMySQLDA/DA.py +++ b/ZMySQLDA/lib/python/Products/ZMySQLDA/DA.py @@ -113,7 +113,6 @@ class Connection(DABase.Connection): icon='misc_/Z%sDA/conn' % database_type manage_properties=HTMLFile('connectionEdit', globals()) - manage_main=HTMLFile('connectionStatus', globals()) def factory(self): return DB diff --git a/ZMySQLDA/lib/python/Products/ZMySQLDA/connectionStatus.dtml b/ZMySQLDA/lib/python/Products/ZMySQLDA/connectionStatus.dtml deleted file mode 100644 index 055fd9a..0000000 --- a/ZMySQLDA/lib/python/Products/ZMySQLDA/connectionStatus.dtml +++ /dev/null @@ -1,45 +0,0 @@ - - - <dtml-var title_or_id> Status - - - -

Status

- - - - - - - - - - - - - - - - - - - - - -
Id
Title
Database Connection String
-Transactions are enableddisabled.
- - The database connection is open.
-
- -
- - The database connection is not open.
-
- -
-
-
- - - diff --git a/ZMySQLDA/lib/python/Products/ZMySQLDA/db.py b/ZMySQLDA/lib/python/Products/ZMySQLDA/db.py index 93f8a4e..929d665 100644 --- a/ZMySQLDA/lib/python/Products/ZMySQLDA/db.py +++ b/ZMySQLDA/lib/python/Products/ZMySQLDA/db.py @@ -261,10 +261,10 @@ class DB(TM): self.db.query("BEGIN") self.db.store_result() - def commit(self, *ignored): + def _commit(self, *ignored): self.db.query("COMMIT") self.db.store_result() - def rollback(self, *ignored): + def _abort(self, *ignored): self.db.query("ROLLBACK") self.db.store_result()