[Zope-Checkins] CVS: Zope2 - __init__.py:1.23
shane@digicool.com
shane@digicool.com
Thu, 17 May 2001 14:35:12 -0400 (EDT)
Update of /cvs-repository/Zope2/lib/python/Zope
In directory korak.digicool.com:/tmp/cvs-serv11564/lib/python/Zope
Modified Files:
__init__.py
Log Message:
The Refresh product.
--- Updated File __init__.py in package Zope2 --
--- __init__.py 2001/04/03 15:03:27 1.22
+++ __init__.py 2001/05/17 18:35:10 1.23
@@ -142,12 +142,17 @@
# Initialize products:
c=app()
OFS.Application.initialize(c)
+
+if Globals.DevelopmentMode:
+ # Set up auto-refresh.
+ from App.RefreshFuncs import setupAutoRefresh
+ setupAutoRefresh(c._p_jar)
+
c._p_jar.close()
del c
# "Log off" as system user
AccessControl.SecurityManagement.noSecurityManager()
-
# This is sneaky, but we don't want to play with Main:
sys.modules['Main']=sys.modules['Zope']