[Zope3-checkins] CVS: Zope3/src/ZODB - DB.py:1.71

Jeremy Hylton jeremy at zope.com
Tue Mar 16 11:28:20 EST 2004


Update of /cvs-repository/Zope3/src/ZODB
In directory cvs.zope.org:/tmp/cvs-serv12622

Modified Files:
	DB.py 
Log Message:
Restore epydoc markup using rST variant.


=== Zope3/src/ZODB/DB.py 1.70 => 1.71 ===
--- Zope3/src/ZODB/DB.py:1.70	Thu Mar  4 17:41:50 2004
+++ Zope3/src/ZODB/DB.py	Tue Mar 16 11:28:19 2004
@@ -28,6 +28,7 @@
 
 class DB(object):
     """The Object Database
+    -------------------
 
     The DB class coordinates the activities of multiple database
     Connection instances.  Most of the work is done by the
@@ -47,6 +48,28 @@
     The database provides a few methods intended for application code
     -- open, close, undo, and pack -- and a large collection of
     methods for inspecting the database and its connections' caches.
+
+    :Cvariables:
+      - `klass`: Class used by L{open} to create database connections
+
+    :Groups:
+      - `User Methods`: __init__, open, close, undo, pack, classFactory
+      - `Inspection Methods`: getName, getSize, objectCount,
+        getActivityMonitor, setActivityMonitor
+      - `Connection Pool Methods`: getPoolSize, getVersionPoolSize,
+        removeVersionPool, setPoolSize, setVersionPoolSize
+      - `Transaction Methods`: invalidate
+      - `Other Methods`: lastTransaction, connectionDebugInfo
+      - `Version Methods`: modifiedInVersion, abortVersion, commitVersion,
+        versionEmpty
+      - `Cache Inspection Methods`: cacheDetail, cacheExtremeDetail,
+        cacheFullSweep, cacheLastGCTime, cacheMinimize, cacheMeanAge,
+        cacheMeanDeac, cacheMeanDeal, cacheSize, cacheDetailSize,
+        getCacheSize, getVersionCacheSize, setCacheSize, setVersionCacheSize,
+        cacheStatistics
+      - `Deprecated Methods`: getCacheDeactivateAfter,
+        setCacheDeactivateAfter,
+        getVersionCacheDeactivateAfter, setVersionCacheDeactivateAfter
     """
     
     klass = Connection  # Class to use for connections
@@ -62,17 +85,15 @@
                  ):
         """Create an object database.
 
-        The constructor requires one argument, the storage used by the
-        database, e.g. FileStorage.
-
-        There are several other optional arguments:
-        pool_size: maximum number of open connections
-        cache_size: target size of Connection object cache
-        cache_deactivate_after: ignored
-        version_pool_size: maximum number of connections (per version)
-        version_cache_size: target size of Connection object cache for
+        :Parameters:
+          - `storage`: the storage used by the database, e.g. FileStorage
+          - `pool_size`: maximum number of open connections
+          - `cache_size`: target size of Connection object cache
+          - `cache_deactivate_after`: ignored
+          - `version_pool_size`: maximum number of connections (per version)
+          - `version_cache_size`: target size of Connection object cache for
             version connections
-        version_cache_deactivate_after: ignored
+          - `version_cache_deactivate_after`: ignored
         """
         # Allocate locks:
         l=allocate_lock()
@@ -602,9 +623,10 @@
         or undoInfo().  The value of id is not the same as a
         transaction id used by other methods; it is unique to undo().
 
-        In addition, a user can pass the optional argument,
-        transaction, which identifies a transaction context to use for
-        the undo().
+        :Parameters:
+          - `id`: a storage-specific transaction identifier
+          - `transaction`: transaction context to use for undo().
+            By default, uses the current transaction.
         """
         if transaction is None:
             transaction = get_transaction()




More information about the Zope3-Checkins mailing list