[Zodb-checkins] CVS: ZODB4/BDBStorage - BerkeleyBase.py:2.3

Barry Warsaw barry@wooz.org
Fri, 6 Dec 2002 18:12:05 -0500


Update of /cvs-repository/ZODB4/BDBStorage
In directory cvs.zope.org:/tmp/cvs-serv19238

Modified Files:
	BerkeleyBase.py 
Log Message:
BerkeleyConfig.__repr__(): Dumb little thing which helps to know how
it's configured when you see it in the log files.


=== ZODB4/BDBStorage/BerkeleyBase.py 2.2 => 2.3 ===
--- ZODB4/BDBStorage/BerkeleyBase.py:2.2	Fri Dec  6 15:41:30 2002
+++ ZODB4/BDBStorage/BerkeleyBase.py	Fri Dec  6 18:12:03 2002
@@ -119,6 +119,22 @@
     packtime = 4 * 60 * 60
     classicpack = 0
 
+    def __repr__(self):
+        d = self.__class__.__dict__.copy()
+        d.update(self.__dict__)
+        return """<BerkeleyConfig:
+\tcheckpoint interval: %(interval)s seconds
+\tcheckpoint kbytes: %(kbyte)s
+\tcheckpoint minutes: %(min)s
+\t----------------------
+\tlogdir: %(logdir)s
+\tcachesize: %(cachesize)s bytes
+\t----------------------
+\tautopack frequency: %(frequency)s seconds
+\tpack to %(packtime)s seconds in the past
+\tclassic pack every %(classicpack)s autopacks
+\t>""" % d
+
 
 
 class BerkeleyBase(BaseStorage):