Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
zodb
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Joshua
zodb
Commits
9e8bbcf1
Commit
9e8bbcf1
authored
Apr 17, 2004
by
Gintautas Miliauskas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Converted BaseStorage to use logging instead of zLOG.
parent
253567fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
4 deletions
+5
-4
src/ZODB/BaseStorage.py
src/ZODB/BaseStorage.py
+5
-4
No files found.
src/ZODB/BaseStorage.py
View file @
9e8bbcf1
...
@@ -13,20 +13,22 @@
...
@@ -13,20 +13,22 @@
##############################################################################
##############################################################################
"""Handy standard storage machinery
"""Handy standard storage machinery
$Id: BaseStorage.py,v 1.4
7 2004/04/13 22:01:51 fdrake
Exp $
$Id: BaseStorage.py,v 1.4
8 2004/04/17 22:19:30 gintautasm
Exp $
"""
"""
import
cPickle
import
cPickle
import
threading
import
threading
import
time
import
time
import
logging
import
UndoLogCompatible
import
UndoLogCompatible
import
POSException
import
POSException
from
persistent.TimeStamp
import
TimeStamp
from
persistent.TimeStamp
import
TimeStamp
import
zLOG
from
ZODB
import
POSException
,
utils
from
ZODB
import
POSException
,
utils
from
ZODB.UndoLogCompatible
import
UndoLogCompatible
from
ZODB.UndoLogCompatible
import
UndoLogCompatible
log
=
logging
.
getLogger
(
"zodb.BaseStorage"
)
class
BaseStorage
(
UndoLogCompatible
):
class
BaseStorage
(
UndoLogCompatible
):
"""Abstract base class that support storage implementations.
"""Abstract base class that support storage implementations.
...
@@ -82,8 +84,7 @@ class BaseStorage(UndoLogCompatible):
...
@@ -82,8 +84,7 @@ class BaseStorage(UndoLogCompatible):
def
__init__
(
self
,
name
,
base
=
None
):
def
__init__
(
self
,
name
,
base
=
None
):
self
.
__name__
=
name
self
.
__name__
=
name
zLOG
.
LOG
(
self
.
__class__
.
__name__
,
zLOG
.
DEBUG
,
log
.
debug
(
"create storage %s"
,
self
.
__name__
)
"create storage %s"
%
self
.
__name__
)
# Allocate locks:
# Allocate locks:
l
=
threading
.
RLock
()
l
=
threading
.
RLock
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment