ZODB.Persistent Objects.Persistent._p_changed
Documentation
The object�s state. A persistent object can be in one of four states:
- Not in memory.
- Inactive (ghost), _p_changed is None.
- Up-to-date, _p_changed is 0.
- Changed, _p_changed is 1.
Assignment to _p_changed can have important impacts on the object:
- Assigning None to _p_changed deactivates an up-to-date object.
- Assigning a true value to _p_changed causes the object to register itself with the current transaction, if it has already done so.
- Assigning a false value to _p_changed caused the object to be in an up-to-date state, which will avoid saving the object in the event of a transaction commit. Assigning a non-None false value to _p_changed should be viewed as a �hack� and avoided whenever possible.