[CMF-checkins] SVN: CMF/trunk/CMFCore/MemberDataTool.py - merged
r76998 from 2.1 branch
Yvo Schubbe
y.2007- at wcm-solutions.de
Sun Jun 24 03:45:10 EDT 2007
Log message for revision 77000:
- merged r76998 from 2.1 branch
Changed:
U CMF/trunk/CMFCore/MemberDataTool.py
-=-
Modified: CMF/trunk/CMFCore/MemberDataTool.py
===================================================================
--- CMF/trunk/CMFCore/MemberDataTool.py 2007-06-24 07:43:28 UTC (rev 76999)
+++ CMF/trunk/CMFCore/MemberDataTool.py 2007-06-24 07:45:10 UTC (rev 77000)
@@ -215,6 +215,21 @@
registerToolInterface('portal_memberdata', IMemberDataTool)
+class CleanupTemp:
+
+ """Used to cleanup _v_temps at the end of the request."""
+
+ def __init__(self, tool):
+ self._tool = tool
+
+ def __del__(self):
+ try:
+ del self._tool._v_temps
+ except (AttributeError, KeyError):
+ # The object has already been deactivated.
+ pass
+
+
class MemberData(SimpleItem):
implements(IMemberData)
More information about the CMF-checkins
mailing list