[CMF-checkins] CVS: Products/CMFCalendar/tests -
test_Calendar.py:1.19
Yvo Schubbe
y.2005- at wcm-solutions.de
Sun Apr 3 18:00:17 EDT 2005
Update of /cvs-repository/Products/CMFCalendar/tests
In directory cvs.zope.org:/tmp/cvs-serv29074/CMFCalendar/tests
Modified Files:
test_Calendar.py
Log Message:
depending on the test environment, temp_folder might exist already
=== Products/CMFCalendar/tests/test_Calendar.py 1.18 => 1.19 ===
--- Products/CMFCalendar/tests/test_Calendar.py:1.18 Sun Apr 3 16:16:10 2005
+++ Products/CMFCalendar/tests/test_Calendar.py Sun Apr 3 18:00:17 2005
@@ -87,9 +87,12 @@
self.Tool = app.CalendarTest.portal_calendar
# sessioning setup
- app._setObject( 'temp_folder', MountedTemporaryFolder('temp_folder') )
- app.temp_folder._setObject( 'session_data',
- TransientObjectContainer('session_data') )
+ if getattr(app, 'temp_folder', None) is None:
+ temp_folder = MountedTemporaryFolder('temp_folder')
+ app._setObject('temp_folder', temp_folder)
+ if getattr(app.temp_folder, 'session_data', None) is None:
+ session_data = TransientObjectContainer('session_data')
+ app.temp_folder._setObject('session_data', session_data)
app.REQUEST.set_lazy( 'SESSION',
app.session_data_manager.getSessionData )
More information about the CMF-checkins
mailing list