Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
4f777640
Commit
4f777640
authored
Apr 19, 2001
by
Jeremy Hylton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modify complete broken code some compiler doesn't complain
parent
1fc48848
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
3 deletions
+4
-3
src/ZODB/DB.py
src/ZODB/DB.py
+4
-3
No files found.
src/ZODB/DB.py
View file @
4f777640
...
...
@@ -84,8 +84,8 @@
##############################################################################
"""Database objects
$Id: DB.py,v 1.2
7 2001/04/12 19:53:04 jim
Exp $"""
__version__
=
'$Revision: 1.2
7
$'
[
11
:
-
2
]
$Id: DB.py,v 1.2
8 2001/04/19 16:06:25 jeremy
Exp $"""
__version__
=
'$Revision: 1.2
8
$'
[
11
:
-
2
]
import
cPickle
,
cStringIO
,
sys
,
POSException
,
UndoLogCompatible
from
Connection
import
Connection
...
...
@@ -168,9 +168,10 @@ class DB(UndoLogCompatible.UndoLogCompatible):
def
_cacheMean
(
self
,
attr
):
# XXX this method doesn't work
m
=
[
0
,
0
]
def
f
(
con
,
m
=
m
,
attr
=
attr
):
t
=
getattr
(
con
.
_cache
,
attr
)
t
=
getattr
(
con
.
_cache
,
attr
)
m
[
0
]
=
m
[
0
]
+
t
m
[
1
]
=
m
[
1
]
+
1
...
...
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