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
5a3551c5
Commit
5a3551c5
authored
Apr 13, 2000
by
Tres Seaver
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Collector 1064: Allow non-sliceable keys in PersistentMapping
parent
32083263
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
9 deletions
+12
-9
src/Persistence/PersistentMapping.py
src/Persistence/PersistentMapping.py
+4
-3
src/ZODB/PersistentMapping.py
src/ZODB/PersistentMapping.py
+4
-3
src/persistent/mapping.py
src/persistent/mapping.py
+4
-3
No files found.
src/Persistence/PersistentMapping.py
View file @
5a3551c5
...
@@ -85,10 +85,11 @@
...
@@ -85,10 +85,11 @@
__doc__
=
'''Python implementation of persistent base types
__doc__
=
'''Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.
5 1999/05/10 23:15:56 jim
Exp $'''
$Id: PersistentMapping.py,v 1.
6 2000/04/13 14:22:54 tseaver
Exp $'''
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
import
Persistence
import
Persistence
import
types
class
PersistentMapping
(
Persistence
.
Persistent
):
class
PersistentMapping
(
Persistence
.
Persistent
):
"""A persistent wrapper for mapping objects.
"""A persistent wrapper for mapping objects.
...
@@ -137,7 +138,7 @@ class PersistentMapping(Persistence.Persistent):
...
@@ -137,7 +138,7 @@ class PersistentMapping(Persistence.Persistent):
try
:
return
self
.
_v_keys
try
:
return
self
.
_v_keys
except
:
pass
except
:
pass
keys
=
self
.
_v_keys
=
filter
(
keys
=
self
.
_v_keys
=
filter
(
lambda
k
:
k
[:
1
]
!=
'_'
,
lambda
k
:
not
isinstance
(
k
,
types
.
StringType
)
or
k
[:
1
]
!=
'_'
,
self
.
_container
.
keys
())
self
.
_container
.
keys
())
keys
.
sort
()
keys
.
sort
()
return
keys
return
keys
...
...
src/ZODB/PersistentMapping.py
View file @
5a3551c5
...
@@ -85,10 +85,11 @@
...
@@ -85,10 +85,11 @@
__doc__
=
'''Python implementation of persistent base types
__doc__
=
'''Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.
5 1999/05/10 23:15:56 jim
Exp $'''
$Id: PersistentMapping.py,v 1.
6 2000/04/13 14:22:54 tseaver
Exp $'''
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
import
Persistence
import
Persistence
import
types
class
PersistentMapping
(
Persistence
.
Persistent
):
class
PersistentMapping
(
Persistence
.
Persistent
):
"""A persistent wrapper for mapping objects.
"""A persistent wrapper for mapping objects.
...
@@ -137,7 +138,7 @@ class PersistentMapping(Persistence.Persistent):
...
@@ -137,7 +138,7 @@ class PersistentMapping(Persistence.Persistent):
try
:
return
self
.
_v_keys
try
:
return
self
.
_v_keys
except
:
pass
except
:
pass
keys
=
self
.
_v_keys
=
filter
(
keys
=
self
.
_v_keys
=
filter
(
lambda
k
:
k
[:
1
]
!=
'_'
,
lambda
k
:
not
isinstance
(
k
,
types
.
StringType
)
or
k
[:
1
]
!=
'_'
,
self
.
_container
.
keys
())
self
.
_container
.
keys
())
keys
.
sort
()
keys
.
sort
()
return
keys
return
keys
...
...
src/persistent/mapping.py
View file @
5a3551c5
...
@@ -85,10 +85,11 @@
...
@@ -85,10 +85,11 @@
__doc__
=
'''Python implementation of persistent base types
__doc__
=
'''Python implementation of persistent base types
$Id: mapping.py,v 1.
5 1999/05/10 23:15:56 jim
Exp $'''
$Id: mapping.py,v 1.
6 2000/04/13 14:22:54 tseaver
Exp $'''
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
import
Persistence
import
Persistence
import
types
class
PersistentMapping
(
Persistence
.
Persistent
):
class
PersistentMapping
(
Persistence
.
Persistent
):
"""A persistent wrapper for mapping objects.
"""A persistent wrapper for mapping objects.
...
@@ -137,7 +138,7 @@ class PersistentMapping(Persistence.Persistent):
...
@@ -137,7 +138,7 @@ class PersistentMapping(Persistence.Persistent):
try
:
return
self
.
_v_keys
try
:
return
self
.
_v_keys
except
:
pass
except
:
pass
keys
=
self
.
_v_keys
=
filter
(
keys
=
self
.
_v_keys
=
filter
(
lambda
k
:
k
[:
1
]
!=
'_'
,
lambda
k
:
not
isinstance
(
k
,
types
.
StringType
)
or
k
[:
1
]
!=
'_'
,
self
.
_container
.
keys
())
self
.
_container
.
keys
())
keys
.
sort
()
keys
.
sort
()
return
keys
return
keys
...
...
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