Commit a859da52 authored by Chris McDonough's avatar Chris McDonough

Wait 10 seconds to reload page after a restart. On slower machines or...

Wait 10 seconds to reload page after a restart.  On slower machines or machines with large databases, Zope can take a long time to restart and when the meta-refresh comes back before the server is up, it raises a browser error.  People who know what it does won't wait, and bumping up the timeout will help mitigate a FA
Q on the Zope lists and in the collector from those who don't.
parent bd5d46bb
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
############################################################################## ##############################################################################
__doc__="""System management components""" __doc__="""System management components"""
__version__='$Revision: 1.92 $'[11:-2] __version__='$Revision: 1.93 $'[11:-2]
import sys,os,time,Globals, Acquisition, os, Undo import sys,os,time,Globals, Acquisition, os, Undo
from Globals import DTMLFile from Globals import DTMLFile
...@@ -398,7 +398,7 @@ class ApplicationManager(Folder,CacheManager): ...@@ -398,7 +398,7 @@ class ApplicationManager(Folder,CacheManager):
#for db in Globals.opened: db.close() #for db in Globals.opened: db.close()
Lifetime.shutdown(1) Lifetime.shutdown(1)
return """<html> return """<html>
<head><meta HTTP-EQUIV=REFRESH CONTENT="5; URL=%s/manage_main"> <head><meta HTTP-EQUIV=REFRESH CONTENT="10; URL=%s/manage_main">
</head> </head>
<body>Zope is restarting</body></html> <body>Zope is restarting</body></html>
""" % escape(URL1, 1) """ % escape(URL1, 1)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment