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
ad26c082
Commit
ad26c082
authored
Mar 08, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Paul made change to clear method to see if keys exist.
parent
fcecb762
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
3 deletions
+6
-3
src/ZODB/Persistence.py
src/ZODB/Persistence.py
+6
-3
No files found.
src/ZODB/Persistence.py
View file @
ad26c082
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
__doc__
=
'''Python implementation of persistent base types
__doc__
=
'''Python implementation of persistent base types
$Id: Persistence.py,v 1.
2 1997/03/05 22:59:48 jim
Exp $'''
$Id: Persistence.py,v 1.
3 1997/03/08 22:03:54 jfulton
Exp $'''
# Copyright
# Copyright
#
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...
@@ -60,6 +60,9 @@ $Id: Persistence.py,v 1.2 1997/03/05 22:59:48 jim Exp $'''
...
@@ -60,6 +60,9 @@ $Id: Persistence.py,v 1.2 1997/03/05 22:59:48 jim Exp $'''
# (540) 371-6909
# (540) 371-6909
#
#
# $Log: Persistence.py,v $
# $Log: Persistence.py,v $
# Revision 1.3 1997/03/08 22:03:54 jfulton
# Paul made change to clear method to see if keys exist.
#
# Revision 1.2 1997/03/05 22:59:48 jim
# Revision 1.2 1997/03/05 22:59:48 jim
# Added clear method.
# Added clear method.
#
#
...
@@ -68,7 +71,7 @@ $Id: Persistence.py,v 1.2 1997/03/05 22:59:48 jim Exp $'''
...
@@ -68,7 +71,7 @@ $Id: Persistence.py,v 1.2 1997/03/05 22:59:48 jim Exp $'''
#
#
#
#
#
#
__version__
=
'$Revision: 1.
2
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
3
$'
[
11
:
-
2
]
class
Persistent
:
class
Persistent
:
"""
\
"""
\
...
@@ -248,7 +251,7 @@ class PersistentMapping(Persistent):
...
@@ -248,7 +251,7 @@ class PersistentMapping(Persistent):
def
clear
(
self
):
def
clear
(
self
):
self
.
_container
=
{}
self
.
_container
=
{}
del
self
.
_keys
if
hasattr
(
self
,
'_keys'
):
del
self
.
_keys
def
values
(
self
):
def
values
(
self
):
return
map
(
lambda
k
,
d
=
self
:
d
[
k
],
self
.
keys
())
return
map
(
lambda
k
,
d
=
self
:
d
[
k
],
self
.
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