[Zope3-checkins] CVS: Zope3/src/zope/app/rdb - __init__.py:1.1.2.4 gadflyda.py:1.1.2.3

Tim Peters tim.one@comcast.net
Tue, 24 Dec 2002 21:21:44 -0500


Update of /cvs-repository/Zope3/src/zope/app/rdb
In directory cvs.zope.org:/tmp/cvs-serv19240/src/zope/app/rdb

Modified Files:
      Tag: NameGeddon-branch
	__init__.py gadflyda.py 
Log Message:
Whitespace normalization, via Python's Tools/scripts/reindent.py.  The
files are fixed-points of that script now.  Fixed a few cases where
code relied on significant trailing whitespace (ouch).


=== Zope3/src/zope/app/rdb/__init__.py 1.1.2.3 => 1.1.2.4 ===
--- Zope3/src/zope/app/rdb/__init__.py:1.1.2.3	Tue Dec 24 10:45:30 2002
+++ Zope3/src/zope/app/rdb/__init__.py	Tue Dec 24 21:20:42 2002
@@ -138,8 +138,8 @@
     def disconnect(self):
         'See IZopeDatabaseAdapter'
         if self.isConnected():
-           self._v_connection.close()
-           self._v_connection = None
+            self._v_connection.close()
+            self._v_connection = None
 
     def isConnected(self):
         'See IZopeDatabaseAdapter'
@@ -305,7 +305,7 @@
         self._txn_registered = False
         self.conn.commit()
 
-        
+
     def rollback(self):
         'See IDBIConnection'
         self._txn_registered = False


=== Zope3/src/zope/app/rdb/gadflyda.py 1.1.2.2 => 1.1.2.3 ===
--- Zope3/src/zope/app/rdb/gadflyda.py:1.1.2.2	Tue Dec 24 13:04:45 2002
+++ Zope3/src/zope/app/rdb/gadflyda.py	Tue Dec 24 21:20:42 2002
@@ -2,14 +2,14 @@
 #
 # Copyright (c) 2002 Zope Corporation and Contributors.
 # All Rights Reserved.
-# 
+#
 # This software is subject to the provisions of the Zope Public License,
 # Version 2.0 (ZPL).  A copy of the ZPL should accompany this distribution.
 # THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
 # WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
 # WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
 # FOR A PARTICULAR PURPOSE.
-# 
+#
 ##############################################################################
 """
 Gadfly Database Adapter (batteries included)
@@ -30,15 +30,15 @@
 
 class GadflyAdapter(ZopeDatabaseAdapter):
     """A Gadfly adapter for Zope3"""
-    
+
     __implements__ = ZopeDatabaseAdapter.__implements__
 
     def _getGadflyRoot(self):
-	# XXX: Need to write a configuration directive for setting this up
-	# At the moment gadfly root is 'gadfly' under the instance home (which
-	# is assumed to be the current directory ATM).
+        # XXX: Need to write a configuration directive for setting this up
+        # At the moment gadfly root is 'gadfly' under the instance home (which
+        # is assumed to be the current directory ATM).
         return 'gadfly'
-    
+
     def _connection_factory(self):
         """Create a Gadfly DBI connection based on the DSN.
 
@@ -65,5 +65,5 @@
             db.startup(connection, dir)
         else:
             db = gadfly.gadfly(connection, dir)
-            
+
         return db