[Checkins] SVN: CMF/branches/2.1/CMFCore/MemberDataTool.py Added
back CleanupTemp,
which is used by other products and would need to be deprecated.
Hanno Schlichting
plone at hannosch.info
Sat Jun 23 20:27:40 EDT 2007
Log message for revision 76998:
Added back CleanupTemp, which is used by other products and would need to be deprecated.
Changed:
U CMF/branches/2.1/CMFCore/MemberDataTool.py
-=-
Modified: CMF/branches/2.1/CMFCore/MemberDataTool.py
===================================================================
--- CMF/branches/2.1/CMFCore/MemberDataTool.py 2007-06-24 00:23:31 UTC (rev 76997)
+++ CMF/branches/2.1/CMFCore/MemberDataTool.py 2007-06-24 00:27:38 UTC (rev 76998)
@@ -221,6 +221,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 Checkins
mailing list