[Zodb-checkins] CVS: ZODB3/ZODB - config.py:1.6

Fred L. Drake, Jr. fred@zope.com
Thu, 9 Jan 2003 13:26:56 -0500


Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv25175

Modified Files:
	config.py 
Log Message:
- add a name attribute to the openers
- docstrings


=== ZODB3/ZODB/config.py 1.5 => 1.6 ===
--- ZODB3/ZODB/config.py:1.5	Tue Jan  7 18:28:14 2003
+++ ZODB3/ZODB/config.py	Thu Jan  9 13:26:53 2003
@@ -51,10 +51,24 @@
 
 class StorageConfig:
 
+    """Object representing a configured storage.
+
+    Methods:
+
+    open() -- open and return the storage object
+
+    Attributes:
+
+    name   -- name of the storage
+
+    """
+
     def __init__(self, config):
         self.config = config
+        self.name = config.getSectionName()
 
     def open(self):
+        """Open and return the storage object."""
         raise NotImplementedError
 
 class MappingStorage(StorageConfig):