[Zope3-checkins] CVS: Zope3/src/zope/app/publication - zopepublication.py:1.25
Jeremy Hylton
jeremy@zope.com
Tue, 8 Apr 2003 15:01:59 -0400
Update of /cvs-repository/Zope3/src/zope/app/publication
In directory cvs.zope.org:/tmp/cvs-serv8819
Modified Files:
zopepublication.py
Log Message:
Use __del__ explicitly, in case Cleanup becomes a new-style class.
=== Zope3/src/zope/app/publication/zopepublication.py 1.24 => 1.25 ===
--- Zope3/src/zope/app/publication/zopepublication.py:1.24 Sun Mar 23 17:35:40 2003
+++ Zope3/src/zope/app/publication/zopepublication.py Tue Apr 8 15:01:59 2003
@@ -48,9 +48,12 @@
# XXX Should this be imported here?
from transaction import get_transaction
-class Cleanup:
+class Cleanup(object):
def __init__(self, f):
- self.__del__ = f
+ self._f = f
+
+ def __del__(self):
+ self._f()
class ZopePublication(object, PublicationTraverse):