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
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
ZEO
Commits
e2f4249c
Commit
e2f4249c
authored
Jul 08, 1999
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
modifiedInVersion failed to return the result in some (normal) cases.
parent
aa7bd65b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
src/ZODB/Connection.py
src/ZODB/Connection.py
+6
-9
No files found.
src/ZODB/Connection.py
View file @
e2f4249c
...
...
@@ -84,8 +84,8 @@
##############################################################################
"""Database connection support
$Id: Connection.py,v 1.1
5 1999/07/07 19:52:28
jim Exp $"""
__version__
=
'$Revision: 1.1
5
$'
[
11
:
-
2
]
$Id: Connection.py,v 1.1
6 1999/07/08 16:33:52
jim Exp $"""
__version__
=
'$Revision: 1.1
6
$'
[
11
:
-
2
]
from
cPickleCache
import
PickleCache
from
POSException
import
ConflictError
,
ExportError
...
...
@@ -367,8 +367,10 @@ class Connection(ExportImport.ExportImport):
"""
self
.
_invalidated
[
oid
]
=
1
def
modifiedInVersion
(
self
,
o
):
return
self
.
_db
.
modifiedInVersion
(
o
.
_p_oid
)
def
modifiedInVersion
(
self
,
oid
):
try
:
return
self
.
_db
.
modifiedInVersion
(
oid
)
except
KeyError
:
return
self
.
_version
def
root
(
self
):
return
self
[
'
\
0
\
0
\
0
\
0
\
0
\
0
\
0
\
0
'
]
...
...
@@ -466,11 +468,6 @@ class Connection(ExportImport.ExportImport):
get_transaction
().
abort
()
self
.
_cache
.
invalidate
(
self
.
_invalidated
)
def
modifiedInVersion
(
self
,
oid
):
try
:
self
.
_db
.
modifiedInVersion
(
oid
)
except
KeyError
:
return
self
.
_version
class
tConnection
(
Connection
):
def
close
(
self
):
...
...
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