[CMF-checkins] CVS: CMF/CMFCore - MemberDataTool.py:1.15.8.4

Florent Guillaume fg@nuxeo.com
Fri, 14 Mar 2003 12:40:32 -0500


Update of /cvs-repository/CMF/CMFCore
In directory cvs.zope.org:/tmp/cvs-serv2002

Modified Files:
      Tag: CMF-1_3-branch
	MemberDataTool.py 
Log Message:
Fix test breakage.


=== CMF/CMFCore/MemberDataTool.py 1.15.8.3 => 1.15.8.4 ===
--- CMF/CMFCore/MemberDataTool.py:1.15.8.3	Fri Mar 14 11:38:38 2003
+++ CMF/CMFCore/MemberDataTool.py	Fri Mar 14 12:40:32 2003
@@ -164,7 +164,9 @@
                 m = MemberData(base, id)
                 if temps is None:
                     self._v_temps = {id:m}
-                    self.REQUEST._hold(CleanupTemp(self))
+                    if hasattr(self, 'REQUEST'):
+                        # No REQUEST during tests.
+                        self.REQUEST._hold(CleanupTemp(self))
                 else:
                     temps[id] = m
         else: