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
63fe89cd
Commit
63fe89cd
authored
Dec 06, 2002
by
Barry Warsaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
_RecordsIterator.__init__(): Port transaction extension fix from
ZODB4. We need to return the unpickled extension data.
parent
36c6b8f1
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
lib/python/BDBStorage/BDBFullStorage.py
lib/python/BDBStorage/BDBFullStorage.py
+5
-3
lib/python/BDBStorage/Full.py
lib/python/BDBStorage/Full.py
+5
-3
No files found.
lib/python/BDBStorage/BDBFullStorage.py
View file @
63fe89cd
...
...
@@ -15,7 +15,7 @@
"""Berkeley storage with full undo and versioning support.
"""
__version__
=
'$Revision: 1.5
8
$'
.
split
()[
-
2
:][
0
]
__version__
=
'$Revision: 1.5
9
$'
.
split
()[
-
2
:][
0
]
import
time
import
cPickle
as
pickle
...
...
@@ -1816,7 +1816,10 @@ class _RecordsIterator(_GetItemBase):
self
.
status
=
' '
self
.
user
=
user
self
.
description
=
desc
self
.
_extension
=
ext
try
:
self
.
_extension
=
pickle
.
loads
(
ext
)
except
EOFError
:
self
.
_extension
=
{}
# Internal pointer
self
.
_oids
=
self
.
_storage
.
_alltxnoids
(
self
.
tid
)
# To make .pop() more efficient
...
...
@@ -1867,7 +1870,6 @@ class _Autopack(_WorkThread):
self
.
_packtime
=
packtime
self
.
_classicpack
=
classicpack
# Bookkeeping
self
.
_stop
=
False
self
.
_lastclassic
=
0
def
_dowork
(
self
):
...
...
lib/python/BDBStorage/Full.py
View file @
63fe89cd
...
...
@@ -15,7 +15,7 @@
"""Berkeley storage with full undo and versioning support.
"""
__version__
=
'$Revision: 1.5
8
$'
.
split
()[
-
2
:][
0
]
__version__
=
'$Revision: 1.5
9
$'
.
split
()[
-
2
:][
0
]
import
time
import
cPickle
as
pickle
...
...
@@ -1816,7 +1816,10 @@ class _RecordsIterator(_GetItemBase):
self
.
status
=
' '
self
.
user
=
user
self
.
description
=
desc
self
.
_extension
=
ext
try
:
self
.
_extension
=
pickle
.
loads
(
ext
)
except
EOFError
:
self
.
_extension
=
{}
# Internal pointer
self
.
_oids
=
self
.
_storage
.
_alltxnoids
(
self
.
tid
)
# To make .pop() more efficient
...
...
@@ -1867,7 +1870,6 @@ class _Autopack(_WorkThread):
self
.
_packtime
=
packtime
self
.
_classicpack
=
classicpack
# Bookkeeping
self
.
_stop
=
False
self
.
_lastclassic
=
0
def
_dowork
(
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