[Zope-Checkins] CVS: Zope/lib/python/Products/Transience -
TransientObject.py:1.9.68.2
Chris McDonough
chrism at plope.com
Sun May 23 00:19:06 EDT 2004
Update of /cvs-repository/Zope/lib/python/Products/Transience
In directory cvs.zope.org:/tmp/cvs-serv22955
Modified Files:
Tag: Zope-2_7-branch
TransientObject.py
Log Message:
Ensure that persistence machinery is tickled when __setitem__, __delitem__,
clear, and update are called on a transient object.
=== Zope/lib/python/Products/Transience/TransientObject.py 1.9.68.1 => 1.9.68.2 ===
--- Zope/lib/python/Products/Transience/TransientObject.py:1.9.68.1 Tue May 18 18:44:37 2004
+++ Zope/lib/python/Products/Transience/TransientObject.py Sun May 23 00:19:02 2004
@@ -151,10 +151,12 @@
return 0
def clear(self):
+ self._p_changed = 1
self._container.clear()
self.setLastModified()
def update(self, d):
+ self._p_changed = 1
for k in d.keys():
self[k] = d[k]
@@ -163,6 +165,7 @@
#
def __setitem__(self, k, v):
+ self._p_changed = 1
self._container[k] = v
self.setLastModified()
@@ -170,6 +173,7 @@
return self._container[k]
def __delitem__(self, k):
+ self._p_changed = 1
del self._container[k]
self.setLastModified()
More information about the Zope-Checkins
mailing list