Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
Zope
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
Zope
Commits
0b4455a9
Commit
0b4455a9
authored
Jan 08, 2006
by
Andreas Jung
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
zLOG -> logging
parent
0b587f20
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
lib/python/tempstorage/TemporaryStorage.py
lib/python/tempstorage/TemporaryStorage.py
+6
-5
No files found.
lib/python/tempstorage/TemporaryStorage.py
View file @
0b4455a9
...
...
@@ -22,7 +22,7 @@ $Id$
__version__
=
'$Revision: 1.1.2.2 $'
[
11
:
-
2
]
from
zLOG
import
LOG
,
BLATHER
from
logging
import
getLogger
from
ZODB.serialize
import
referencesf
from
ZODB
import
POSException
from
ZODB.BaseStorage
import
BaseStorage
...
...
@@ -37,6 +37,8 @@ CONFLICT_CACHE_GCEVERY = 60
# keep history of recently gc'ed oids of length RECENTLY_GC_OIDS_LEN
RECENTLY_GC_OIDS_LEN
=
200
LOG
=
getLogger
(
'TemporaryStorage'
)
class
ReferenceCountError
(
POSException
.
POSError
):
""" An error occured while decrementing a reference to an object in
the commit phase. The object's reference count was below zero."""
...
...
@@ -182,10 +184,9 @@ class TemporaryStorage(BaseStorage, ConflictResolvingStorage):
if
version
:
# we allow a version to be in use although we don't
# support versions in the storage.
LOG
(
'TemporaryStorage'
,
BLATHER
,
(
'versions in use with TemporaryStorage although Temporary'
'Storage doesnt support versions'
),
)
LOG
.
debug
(
'versions in use with TemporaryStorage although Temporary '
'Storage doesnt support versions'
)
self
.
_lock_acquire
()
try
:
if
self
.
_index
.
has_key
(
oid
):
...
...
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