Commit 4ab87b52 authored by Jeremy Hylton's avatar Jeremy Hylton

Make consistent use of assignment to _p_changed instead of __changed__().

The doc string for __changed__() says that it is deprecated, but
presumably the calls here were old and just never got updated.
parent abc8eb11
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
__doc__='''Python implementation of persistent base types __doc__='''Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.12 2001/11/27 21:38:06 jeremy Exp $''' $Id: PersistentMapping.py,v 1.13 2001/11/27 21:55:17 jeremy Exp $'''
__version__='$Revision: 1.12 $'[11:-2] __version__='$Revision: 1.13 $'[11:-2]
import Persistence import Persistence
import types import types
...@@ -111,11 +111,11 @@ class PersistentMapping(UserDict, Persistence.Persistent): ...@@ -111,11 +111,11 @@ class PersistentMapping(UserDict, Persistence.Persistent):
def __delitem__(self, key): def __delitem__(self, key):
self.__super_delitem(key) self.__super_delitem(key)
self.__changed__(1) self._p_changed = 1
def __setitem__(self, key, v): def __setitem__(self, key, v):
self.__super_setitem(key, v) self.__super_setitem(key, v)
self.__changed__(1) self._p_changed = 1
def clear(self): def clear(self):
self.__super_clear() self.__super_clear()
......
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
__doc__='''Python implementation of persistent base types __doc__='''Python implementation of persistent base types
$Id: PersistentMapping.py,v 1.12 2001/11/27 21:38:06 jeremy Exp $''' $Id: PersistentMapping.py,v 1.13 2001/11/27 21:55:17 jeremy Exp $'''
__version__='$Revision: 1.12 $'[11:-2] __version__='$Revision: 1.13 $'[11:-2]
import Persistence import Persistence
import types import types
...@@ -111,11 +111,11 @@ class PersistentMapping(UserDict, Persistence.Persistent): ...@@ -111,11 +111,11 @@ class PersistentMapping(UserDict, Persistence.Persistent):
def __delitem__(self, key): def __delitem__(self, key):
self.__super_delitem(key) self.__super_delitem(key)
self.__changed__(1) self._p_changed = 1
def __setitem__(self, key, v): def __setitem__(self, key, v):
self.__super_setitem(key, v) self.__super_setitem(key, v)
self.__changed__(1) self._p_changed = 1
def clear(self): def clear(self):
self.__super_clear() self.__super_clear()
......
...@@ -85,8 +85,8 @@ ...@@ -85,8 +85,8 @@
__doc__='''Python implementation of persistent base types __doc__='''Python implementation of persistent base types
$Id: mapping.py,v 1.12 2001/11/27 21:38:06 jeremy Exp $''' $Id: mapping.py,v 1.13 2001/11/27 21:55:17 jeremy Exp $'''
__version__='$Revision: 1.12 $'[11:-2] __version__='$Revision: 1.13 $'[11:-2]
import Persistence import Persistence
import types import types
...@@ -111,11 +111,11 @@ class PersistentMapping(UserDict, Persistence.Persistent): ...@@ -111,11 +111,11 @@ class PersistentMapping(UserDict, Persistence.Persistent):
def __delitem__(self, key): def __delitem__(self, key):
self.__super_delitem(key) self.__super_delitem(key)
self.__changed__(1) self._p_changed = 1
def __setitem__(self, key, v): def __setitem__(self, key, v):
self.__super_setitem(key, v) self.__super_setitem(key, v)
self.__changed__(1) self._p_changed = 1
def clear(self): def clear(self):
self.__super_clear() self.__super_clear()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment