You are not logged in Log in Join
You are here: Home » Members » Tobias Herp » RestartWithLink - adds some comfort to the Zope restart screen » RestartWithLink 1.1 Readme » View Document

Log in
Name

Password

 

RestartWithLink 1.1 Readme

Initial public release

This is a product for Zope developers, for those who often try a new product, and for those among us who simply like some comfort when they restart Zope.

What does RestartWithLink do for me?

RestartWithLink doesn't add any object types; it is just a surficial monkey patch for the Zope restarting mechanism. It affects the Restart button on the Control Panel page (which won't be there in some cases, e.g. when you started Zope manually on a Windows machine. It will be there when you start it as a service).

If you ever tried this button, you have noticed the weak message Zope is restarting. After 5 seconds, the browser will try to reload the page; this will fail in many cases where Zope just needs a little bit longer to restart, and yield a error message. If you just refresh now, Zope restarts again...

This product gives you three useful links:

  1. The normal link back to the Control Panel
  2. a link to restart Zope again. Since this will immediately produce the same screen again, the actual time is written to the screen (via Javascript)
  3. a link to your products view, reverse sorted by change date (newest first).

Furthermore, RestartWithLink allows you to adjust the timeout yourself: Just change or override the get_restart_timeout method to return e.g. 10, and your browser will wait 10 seconds before trying to reload. But maybe you don't want it to succeed, because you like the links better? ;-) Then specify a smaller value, e.g. 1.

Uninstalling

Since RestartWithLink is a monkey patch, it doesn't change any file of your precious Zope installation. If you indeed don't like it, just remove the directory, delete the product and restart Zope; it won't bother you anymore. But I consider this not very likely ;-)

Enjoy!