[Zope-Checkins] CVS: Zope/lib/python/OFS - Application.py:1.164

Chris McDonough chrism@zope.com
Sat, 17 Nov 2001 10:56:02 -0500


Update of /cvs-repository/Zope/lib/python/OFS
In directory cvs.zope.org:/tmp/cvs-serv25823

Modified Files:
	Application.py 
Log Message:
Renamed transient object container in temp folder to "session_data".


=== Zope/lib/python/OFS/Application.py 1.163 => 1.164 ===
     # b/c: Ensure that there is a transient container in the temp folder
     tf = app.temp_folder
-    if not hasattr(tf, 'transient_container'):
+    if not hasattr(tf, 'session_data'):
         from Products.Transience.Transience import TransientObjectContainer
-
         addnotify = os.environ.get('ZSESSION_ADD_NOTIFY', '/session_add')
         delnotify = os.environ.get('ZSESSION_DEL_NOTIFY', '/session_del')
         if app.unrestrictedTraverse(addnotify,None) is None: addnotify=None
         if app.unrestrictedTraverse(delnotify,None) is None: delnotify=None
 
-        toc = TransientObjectContainer('transient_container', 
-            'Transient Object Container', addNotification=addnotify,
+        toc = TransientObjectContainer('session_data',
+            'Session Data Container', addNotification=addnotify,
             delNotification = delnotify)
-        tf._setObject('transient_container', toc)
-        get_transaction().note('Added transient_container to '
+        tf._setObject('session_data', toc)
+        get_transaction().note('Added session_data to '
             'temp_folder')
         get_transaction().commit()
         del toc
@@ -466,7 +465,7 @@
         from Products.Sessions.SessionDataManager import SessionDataManager
         sdm = SessionDataManager('session_data_manager',
             title='Session Data Manager',
-            path='/temp_folder/transient_container',
+            path='/temp_folder/session_data',
             requestName='SESSION')
         app._setObject('session_data_manager', sdm)
         get_transaction().note('Added session_data_manager')