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

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


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

Modified Files:
	MemberDataTool.py 
Log Message:
Fix test breakage.


=== CMF/CMFCore/MemberDataTool.py 1.23 => 1.24 ===
--- CMF/CMFCore/MemberDataTool.py:1.23	Fri Mar 14 11:35:35 2003
+++ CMF/CMFCore/MemberDataTool.py	Fri Mar 14 12:39:24 2003
@@ -159,7 +159,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: