Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZODB
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
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kirill Smelkov
ZODB
Commits
0f1786ff
Commit
0f1786ff
authored
Dec 05, 2005
by
Michael Kerrin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix final failing test in the persistentclass.txt file.
parent
b783cfc0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
2 deletions
+9
-2
src/ZODB/Connection.py
src/ZODB/Connection.py
+9
-2
No files found.
src/ZODB/Connection.py
View file @
0f1786ff
...
@@ -558,7 +558,13 @@ class Connection(ExportImport, object):
...
@@ -558,7 +558,13 @@ class Connection(ExportImport, object):
self
.
_modified
.
append
(
oid
)
self
.
_modified
.
append
(
oid
)
p
=
writer
.
serialize
(
obj
)
# This calls __getstate__ of obj
p
=
writer
.
serialize
(
obj
)
# This calls __getstate__ of obj
if
IBlob
.
providedBy
(
obj
):
# This is a workaround to calling IBlob.proivdedBy(obj). Calling
# Interface.providedBy on a object to be stored can invertible
# set the '__providedBy__' and '__implemented__' attributes on the
# object. This interferes the storing of the object by requesting
# that the values of these objects should be stored with the ZODB.
providedBy
=
getattr
(
obj
,
'__providedBy__'
,
None
)
if
providedBy
is
not
None
and
IBlob
in
providedBy
:
if
not
IBlobStorage
.
providedBy
(
self
.
_storage
):
if
not
IBlobStorage
.
providedBy
(
self
.
_storage
):
raise
Unsupported
(
raise
Unsupported
(
"Storing Blobs in %s is not supported."
%
"Storing Blobs in %s is not supported."
%
...
@@ -811,7 +817,8 @@ class Connection(ExportImport, object):
...
@@ -811,7 +817,8 @@ class Connection(ExportImport, object):
obj
.
_p_serial
=
serial
obj
.
_p_serial
=
serial
# Blob support
# Blob support
if
IBlob
.
providedBy
(
obj
):
providedBy
=
getattr
(
obj
,
'__providedBy__'
,
None
)
if
providedBy
is
not
None
and
IBlob
in
providedBy
:
obj
.
_p_blob_uncommitted
=
None
obj
.
_p_blob_uncommitted
=
None
obj
.
_p_blob_data
=
\
obj
.
_p_blob_data
=
\
self
.
_storage
.
loadBlob
(
obj
.
_p_oid
,
serial
,
self
.
_version
)
self
.
_storage
.
loadBlob
(
obj
.
_p_oid
,
serial
,
self
.
_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