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
aa7bd65b
Commit
aa7bd65b
authored
Jul 07, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixed undo bug. Undo didn't properly invalidate objects.
parent
53187180
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
src/ZODB/DB.py
src/ZODB/DB.py
+7
-4
No files found.
src/ZODB/DB.py
View file @
aa7bd65b
...
@@ -84,8 +84,8 @@
...
@@ -84,8 +84,8 @@
##############################################################################
##############################################################################
"""Database objects
"""Database objects
$Id: DB.py,v 1.
9 1999/07/01 13:26:37 brian
Exp $"""
$Id: DB.py,v 1.
10 1999/07/07 19:57:55 jim
Exp $"""
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
10
$'
[
11
:
-
2
]
import
cPickle
,
cStringIO
,
sys
,
POSException
import
cPickle
,
cStringIO
,
sys
,
POSException
from
Connection
import
Connection
from
Connection
import
Connection
...
@@ -151,8 +151,7 @@ class DB:
...
@@ -151,8 +151,7 @@ class DB:
# Pass through methods:
# Pass through methods:
for
m
in
(
'history'
,
'modifiedInVersion'
,
for
m
in
(
'history'
,
'modifiedInVersion'
,
'supportsUndo'
,
'supportsVersions'
,
'supportsUndo'
,
'supportsVersions'
,
'undoLog'
,
'undo'
,
'undoLog'
,
'versionEmpty'
,
'versions'
):
'versionEmpty'
,
'versions'
):
setattr
(
self
,
m
,
getattr
(
storage
,
m
))
setattr
(
self
,
m
,
getattr
(
storage
,
m
))
...
@@ -455,6 +454,10 @@ class DB:
...
@@ -455,6 +454,10 @@ class DB:
def
cacheStatistics
(
self
):
return
()
# :(
def
cacheStatistics
(
self
):
return
()
# :(
def
undo
(
self
,
id
):
for
oid
in
self
.
_storage
.
undo
(
id
):
self
.
invalidate
(
oid
)
def
versionEmpty
(
self
,
version
):
def
versionEmpty
(
self
,
version
):
return
self
.
_storage
.
versionEmpty
(
version
)
return
self
.
_storage
.
versionEmpty
(
version
)
...
...
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