Changeset 3672


Ignore:
Timestamp:
16 Sep 2008, 14:45:25 (16 years ago)
Author:
jens
Message:
  • create a "faster" session data container in the temp_folder upon Zope startup. This code moved from the faster product where it doesn't belong.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/__init__.py

    r3277 r3672  
    136136##    DirectoryTypeRegistry.register(WAeUPTables.Applicants)
    137137
     138    # Create a faster session container in temp_folder...
     139    import Zope
     140    from Products.faster.sessiondata import addSessionDataContainer
     141    sess_container_name = "faster_session"
     142    root = Zope.app()
     143    temp = root.unrestrictedTraverse( "/temp_folder", None )
     144    if temp is not None and not sess_container_name in temp.objectIds():
     145        addSessionDataContainer( temp, sess_container_name, 9600, 4800,
     146                  lazy=True, title='Faster session data container')
     147
Note: See TracChangeset for help on using the changeset viewer.