[Zope-Checkins] CVS: Zope/lib/python/Products/Transience - TransientObject.py:1.3.16.2
Chris McDonough
chrism@zope.com
Thu, 4 Apr 2002 15:21:47 -0500
Update of /cvs-repository/Zope/lib/python/Products/Transience
In directory cvs.zope.org:/tmp/cvs-serv25881
Modified Files:
Tag: Zope-2_5-branch
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.3.16.1 => 1.3.16.2 ===
set = __setitem__
__guarded_setitem__ = __setitem__
+ __guarded_delitem__ = __delitem__
delete = __delitem__
# -----------------------------------------------------------------