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
nexedi
ZODB
Commits
9ea3cc2a
Commit
9ea3cc2a
authored
Oct 08, 2009
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Defining a multable attr in a class is insane.
parent
e8ba3234
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
src/ZODB/tests/PackableStorage.py
src/ZODB/tests/PackableStorage.py
+8
-1
No files found.
src/ZODB/tests/PackableStorage.py
View file @
9ea3cc2a
...
@@ -92,7 +92,14 @@ def pdumps(obj):
...
@@ -92,7 +92,14 @@ def pdumps(obj):
class
PackableStorageBase
:
class
PackableStorageBase
:
# We keep a cache of object ids to instances so that the unpickler can
# We keep a cache of object ids to instances so that the unpickler can
# easily return any persistent object.
# easily return any persistent object.
_cache
=
{}
@
property
def
_cache
(
self
):
try
:
return
self
.
__cache
except
AttributeError
:
self
.
__cache
=
{}
return
self
.
__cache
def
_newobj
(
self
):
def
_newobj
(
self
):
# This is a convenience method to create a new persistent Object
# This is a convenience method to create a new persistent Object
...
...
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