[Zope-Checkins] CVS: Zope/lib/python/Products/Transience - TransientObject.py:1.5
Chris McDonough
chrism@zope.com
Thu, 4 Apr 2002 15:22:43 -0500
Update of /cvs-repository/Zope/lib/python/Products/Transience
In directory cvs.zope.org:/tmp/cvs-serv26103
Modified Files:
TransientObject.py
Log Message:
Fixed bug where ttw code that called:
del transientobject['key']
Would fail with a slice error (due to the security machinery).
Assigning __garded_delitem__ to __delitem__ solves this problem.
=== Zope/lib/python/Products/Transience/TransientObject.py 1.4 => 1.5 ===
set = __setitem__
__guarded_setitem__ = __setitem__
+ __guarded_delitem__ = __delitem__
delete = __delitem__
# -----------------------------------------------------------------