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
839e5b3a
Commit
839e5b3a
authored
Aug 29, 2016
by
Maurits van Rees
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
typos
parent
ee89e1c2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
documentation/guide/writing-persistent-objects.rst
documentation/guide/writing-persistent-objects.rst
+4
-4
No files found.
documentation/guide/writing-persistent-objects.rst
View file @
839e5b3a
...
...
@@ -239,7 +239,7 @@ limited to):
_p_changed
The ``_p_changed`` attribute has the value ``None`` if the
object is a :ref:`ghost <ghost-label>`, True if it'
s
changed
,
an
object is a :ref:`ghost <ghost-label>`, True if it'
s
changed
,
an
d
False
if
it
's not a ghost and not changed.
_p_oid
...
...
@@ -412,10 +412,10 @@ Changed
indicate that there are changes that need to be committed. It
remains in this state until either:
- The current transaction committed, and the object transitions to
- The current transaction
is
committed, and the object transitions to
the saved state, or
- The current trans
itions
is aborted, and the object transitions to
- The current trans
action
is aborted, and the object transitions to
the ghost state.
.. _ghost-label:
...
...
@@ -519,7 +519,7 @@ dictionary. (It's a little more complicated for objects with slots.)
An
object
's state is loaded by loading the state from the database and
passing it to the object'
s
``
__setstate__
``
method
.
The
default
implementation
expects
a
dictionary
,
which
it
use
d
to
populate
the
implementation
expects
a
dictionary
,
which
it
use
s
to
populate
the
object
's instance dictionary.
Early on, we thought that overriding these methods would be useful for
...
...
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