durusmail: durus-users: renaming module/classes problem
renaming module/classes problem
2005-03-15
2005-03-15
2005-03-15
2005-03-15
2005-03-15
renaming module/classes problem
David Binger
2005-03-15
On Mar 15, 2005, at 3:06 PM, Mario Ruggier wrote:
>
> Does x._p_changed need to be set to True, or is x._p_note_changed()
> enough?

_p_changed is a property.  When you set it, it just calls
_p_note_change()
(note that the name of the method does not have a d on the end.)

I think calling _p_note_change() is better practice because it will
probably fail (as it should) if you try to call it on something that
is not an instance of Persistent.  The _p_changed way is there
because that is the standard in ZODB.


reply