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
353934a4
Commit
353934a4
authored
Apr 22, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed to use new cPersistent header.
parent
b25862f8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
14 deletions
+17
-14
src/ZODB/Persistence.py
src/ZODB/Persistence.py
+17
-14
No files found.
src/ZODB/Persistence.py
View file @
353934a4
...
...
@@ -4,7 +4,7 @@
__doc__
=
'''Python implementation of persistent base types
$Id: Persistence.py,v 1.
8 1997/04/04 13:52:27
jim Exp $'''
$Id: Persistence.py,v 1.
9 1997/04/22 00:16:50
jim Exp $'''
# Copyright
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...
...
@@ -60,6 +60,9 @@ $Id: Persistence.py,v 1.8 1997/04/04 13:52:27 jim Exp $'''
# (540) 371-6909
#
# $Log: Persistence.py,v $
# Revision 1.9 1997/04/22 00:16:50 jim
# Changed to use new cPersistent header.
#
# Revision 1.8 1997/04/04 13:52:27 jim
# Fixed bug in persistent mapping that caused extraneous records to be
# written.
...
...
@@ -89,7 +92,7 @@ $Id: Persistence.py,v 1.8 1997/04/04 13:52:27 jim Exp $'''
#
#
#
__version__
=
'$Revision: 1.
8
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
9
$'
[
11
:
-
2
]
class
Persistent
:
"""
\
...
...
@@ -142,21 +145,21 @@ class Persistent:
d
[
'_p_setstate'
]
=
jar
.
setstate
d
[
'_p_changed'
]
=
0
def
_p___reinit__
(
self
,
oid
=
None
,
jar
=
None
,
copy
=
None
):
def
_p___reinit__
(
self
,
copy
=
None
):
if
copy
is
None
:
return
d
=
self
.
__dict__
cd
=
copy
.
__dict__
if
self
.
_p_oid
is
None
:
d
[
'_p_oid'
]
=
oid
if
self
.
_p_oid
==
oid
:
newstate
=
{}
for
key
in
cd
.
keys
():
if
key
[:
3
]
!=
'_p_'
:
newstate
[
key
]
=
cd
[
key
]
for
key
in
d
.
keys
():
if
key
[:
3
]
!=
'_p_'
:
del
d
[
key
]
d
[
'_p_newstate'
]
=
newstate
d
[
'_p_jar'
]
=
jar
d
[
'_p_setstate'
]
=
jar
.
setstate
d
[
'_p_changed'
]
=
0
oid
=
self
.
_p_
oid
jar
=
self
.
_p_jar
newstate
=
{}
for
key
in
cd
.
keys
():
if
key
[:
3
]
!=
'_p_'
:
newstate
[
key
]
=
cd
[
key
]
for
key
in
d
.
keys
():
if
key
[:
3
]
!=
'_p_'
:
del
d
[
key
]
d
[
'_p_newstate'
]
=
newstate
d
[
'_p_jar'
]
=
jar
d
[
'_p_setstate'
]
=
jar
.
setstate
d
[
'_p_changed'
]
=
0
def
__setattr__
(
self
,
key
,
value
):
' '
...
...
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