[Zodb-checkins] CVS: ZODB3/ZODB - BaseStorage.py:1.34.2.1
Jeremy Hylton
jeremy at zope.com
Thu Sep 11 16:45:13 EDT 2003
Update of /cvs-repository/ZODB3/ZODB
In directory cvs.zope.org:/tmp/cvs-serv10357/ZODB
Modified Files:
Tag: ZODB3-3_2-branch
BaseStorage.py
Log Message:
Add debug log message for each storage created.
Refactor imports while I'm at it.
=== ZODB3/ZODB/BaseStorage.py 1.34 => 1.34.2.1 ===
--- ZODB3/ZODB/BaseStorage.py:1.34 Tue Jun 10 11:46:31 2003
+++ ZODB3/ZODB/BaseStorage.py Thu Sep 11 15:45:13 2003
@@ -16,21 +16,26 @@
$Id$
"""
import cPickle
-import ThreadLock, bpthread
-import time, UndoLogCompatible
-import POSException
-from TimeStamp import TimeStamp
-z64='\0'*8
+import time
-class BaseStorage(UndoLogCompatible.UndoLogCompatible):
+import ThreadLock
+import zLOG
+from ZODB import bpthread
+from ZODB import POSException
+from ZODB.TimeStamp import TimeStamp
+from ZODB.UndoLogCompatible import UndoLogCompatible
+from ZODB.utils import z64
+
+class BaseStorage(UndoLogCompatible):
_transaction=None # Transaction that is being committed
_serial=z64 # Transaction serial number
_tstatus=' ' # Transaction status, used for copying data
_is_read_only = 0
def __init__(self, name, base=None):
-
- self.__name__=name
+ self.__name__= name
+ zLOG.LOG(self.__class__.__name__, zLOG.DEBUG,
+ "create storage %s" % self.__name__)
# Allocate locks:
l=ThreadLock.allocate_lock()
More information about the Zodb-checkins
mailing list