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
c3fe099f
Commit
c3fe099f
authored
Mar 28, 1997
by
Jim Fulton
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Changed reinit to tolerate being called with no arguments.
parent
7a4ae1f9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
src/ZODB/Persistence.py
src/ZODB/Persistence.py
+7
-3
No files found.
src/ZODB/Persistence.py
View file @
c3fe099f
...
...
@@ -4,7 +4,7 @@
__doc__
=
'''Python implementation of persistent base types
$Id: Persistence.py,v 1.
5 1997/03/25 20:42:42
jim Exp $'''
$Id: Persistence.py,v 1.
6 1997/03/28 23:04:48
jim Exp $'''
# Copyright
#
# Copyright 1996 Digital Creations, L.C., 910 Princess Anne
...
...
@@ -60,6 +60,9 @@ $Id: Persistence.py,v 1.5 1997/03/25 20:42:42 jim Exp $'''
# (540) 371-6909
#
# $Log: Persistence.py,v $
# Revision 1.6 1997/03/28 23:04:48 jim
# Changed reinit to tolerate being called with no arguments.
#
# Revision 1.5 1997/03/25 20:42:42 jim
# Changed to make all persistent objects transactional.
#
...
...
@@ -79,7 +82,7 @@ $Id: Persistence.py,v 1.5 1997/03/25 20:42:42 jim Exp $'''
#
#
#
__version__
=
'$Revision: 1.
5
$'
[
11
:
-
2
]
__version__
=
'$Revision: 1.
6
$'
[
11
:
-
2
]
class
Persistent
:
"""
\
...
...
@@ -132,7 +135,8 @@ class Persistent:
d
[
'_p_setstate'
]
=
jar
.
setstate
d
[
'_p_changed'
]
=
0
def
_p___reinit__
(
self
,
oid
,
jar
,
copy
):
def
_p___reinit__
(
self
,
oid
=
None
,
jar
=
None
,
copy
=
None
):
if
copy
is
None
:
return
d
=
self
.
__dict__
cd
=
copy
.
__dict__
if
self
.
_p_oid
is
None
:
d
[
'_p_oid'
]
=
oid
...
...
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