dabo Commit
Revision 3316
Date: 2007-08-20 15:05:17 -0700 (Mon, 20 Aug 2007)
Author: Johnf
Trac: http://svn.dabodev.com/trac/dabo/changeset/3316

Changed:
U   trunk/dabo/db/dbPostgreSQL.py

Log:
add method beginTransaction() to support Ed's new transaction mods.  It does 
nothing - a pass.  I will continue to do a little research to determine if it 
is possible to use the "begin"  with the method.  

Diff:
Modified: trunk/dabo/db/dbPostgreSQL.py
===================================================================
--- trunk/dabo/db/dbPostgreSQL.py       2007-08-19 19:12:51 UTC (rev 3315)
+++ trunk/dabo/db/dbPostgreSQL.py       2007-08-20 22:05:17 UTC (rev 3316)
@@ -1,5 +1,6 @@
 # -*- coding: utf-8 -*-
 import datetime
+import dabo
 from dabo.dLocalize import _
 from dBackend import dBackend
 
@@ -31,6 +32,10 @@
                        DSN += " %s=%s" % (kw, val)
                self._connection = dbapi.connect(DSN)
                return self._connection
+       
+       def beginTransaction(self, cursor):
+               dabo.dbActivityLog.write("SQL: begin (implicit, nothing done)")
+               pass
 
 
        def getDictCursorClass(self):
@@ -221,6 +226,7 @@
                to the database written to disk.
                """
                self.commitTransaction(cursor)
+               dabo.dbActivityLog.write("SQL: Commit")
 
 
        def getLastInsertID(self, cursor):




_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-dev
Searchable Archives: http://leafe.com/archives/search/dabo-dev
This message: http://leafe.com/archives/byMID/dabo-dev/[EMAIL PROTECTED]

Reply via email to