[Zodb-checkins]
SVN: ZODB/branches/pycon-multidb/src/ZODB/interfaces.py
- Moved some interface methods in the right place. I
accidentally put stuff from IConnection to IDatabase.
Christian Theune
ct at gocept.com
Sun Mar 20 16:10:17 EST 2005
Log message for revision 29594:
- Moved some interface methods in the right place. I accidentally put stuff from IConnection to IDatabase.
Changed:
U ZODB/branches/pycon-multidb/src/ZODB/interfaces.py
-=-
Modified: ZODB/branches/pycon-multidb/src/ZODB/interfaces.py
===================================================================
--- ZODB/branches/pycon-multidb/src/ZODB/interfaces.py 2005-03-20 19:43:18 UTC (rev 29593)
+++ ZODB/branches/pycon-multidb/src/ZODB/interfaces.py 2005-03-20 21:10:16 UTC (rev 29594)
@@ -174,10 +174,9 @@
Raises KeyError if oid does not exist.
- It is possible that an
- object does not exist as of the current transaction, but
- existed in the past. It may even exist again in the
- future, if the transaction that removed it is undone.
+ It is possible that an object does not exist as of the current
+ transaction, but existed in the past. It may even exist again in
+ the future, if the transaction that removed it is undone.
Raises ConnectionStateError if the connection is closed.
"""
@@ -276,6 +275,34 @@
same Connection object each time.
"""
+ def sync():
+ """Manually update the view on the database.
+
+ This includes aborting the current transaction, getting a fresh and
+ consistent view of the data (synchronizing with the storage if possible)
+ and call cacheGC() for this connection.
+
+ This method was especially useful in ZODB 3.2 to better support
+ read-only connections that were affected by a couple of problems.
+ """
+
+ # Debug information
+
+ def getDebugInfo():
+ """Returns a tuple with different items for debugging the connection.
+
+ Debug information can be added to a connection by using setDebugInfo.
+ """
+
+ def setDebugInfo(*items):
+ """Add the given items to the debug information of this connection."""
+
+ def getTransferCounts(clear=False):
+ """Returns the number of objects loaded and stored.
+
+ If clear is True, reset the counters.
+ """
+
class IDatabase(Interface):
"""ZODB DB.
@@ -321,32 +348,5 @@
entry.
""")
- def sync(self):
- """Manually update the view on the database.
- This includes aborting the current transaction, getting a fresh and
- consistent view of the data (synchronizing with the storage if possible)
- and call cacheGC() for this connection.
-
- This method was especially useful in ZODB 3.2 to better support
- read-only connections that were affected by a couple of problems.
- """
- # Debug information
-
- def getDebugInfo():
- """Returns a tuple with different items for debugging the connection.
-
- Debug information can be added to a connection by using setDebugInfo.
- """
-
- def setDebugInfo(*items):
- """Add the given items to the debug information of this connection."""
-
- def getTransferCounts(clear=False):
- """Returns the number of objects loaded and stored.
-
- If clear is True, reset the counters.
- """
-
-
More information about the Zodb-checkins
mailing list