Zope start finished
Hello list, we have a local Zope installation on a laptop to present our product. Our problem is, that starting Zope lasts a relative long time and we have no feedback when our product is ready to work. Is there a possiblity to show the user e.g. a message box when zope and the product are ready to work and the user can start the presentation? For example is there a method that can be overwritten in order to do that? Many thanks in advance, Ulla.
we have a local Zope installation on a laptop to present our product.
Our problem is, that starting Zope lasts a relative long time and we have no feedback when our product is ready to work.
Is there a possiblity to show the user e.g. a message box when zope and the product are ready to work and the user can start the presentation?
For example is there a method that can be overwritten in order to do that?
If you start it on the console, there's a message that says when the webserver is up and running. This isn't pretty, granted. I doubt there's a hook for that (most people don't use Zope as a user application), but you can stick in a call to whatever sort of notification mechanism you like right next to that in the Zope source. My ad hoc in-development solution is to (1) know how long the restart takes, as its relatively constant and/or (2) use ZEO, which can start the front-end much much faster. If you're going to put a UI element up (wxPython or whatever), you'll probably have to run from the console. Otherwise I don't know how you can find the window system. May I suggest that you start Zope prior to your presentation? Seems like the obvious solution to me, but I'm sure you have your reasons. --jcc
This looks like it is no longer maintained, but from what I remember, it had some sort of notification. http://www.zope.org/Members/richard/zope_controller/ BTW: Too bad about the MacOSX version... BZ -- http://www.zopezone.com http://www.bluewildfire.com
we have a local Zope installation on a laptop to present our product.
Our problem is, that starting Zope lasts a relative long time and we have no feedback when our product is ready to work.
Is there a possiblity to show the user e.g. a message box when zope and the product are ready to work and the user can start the presentation?
For example is there a method that can be overwritten in order to do that?
If you start it on the console, there's a message that says when the webserver is up and running. This isn't pretty, granted. I doubt there's a hook for that (most people don't use Zope as a user application), but you can stick in a call to whatever sort of notification mechanism you like right next to that in the Zope source.
My ad hoc in-development solution is to (1) know how long the restart takes, as its relatively constant and/or (2) use ZEO, which can start the front-end much much faster.
If you're going to put a UI element up (wxPython or whatever), you'll probably have to run from the console. Otherwise I don't know how you can find the window system.
May I suggest that you start Zope prior to your presentation? Seems like the obvious solution to me, but I'm sure you have your reasons.
--jcc
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
Simple but possibly effective by using Opera browser, depends on your product. Case 1: Your product is available immediatly once Zope starts First start Zope, then open Opera with two windows, one will stay blank, and set the Opera home page on the other window to any page on your Zope server (maybe create a page that has a very large font saying ZOPE IS RUNNING). Next, right click on that page and choose 'Reload' and 'Enable' then set the reload time for 5 seconds. Finally, under the Window menu choose Save Window Setup. Now each time you open Opera it will reload that URL every 5 seconds Case 2: Your product takes longer to start Similar as before but set Opera to a page that uses your product, you may have to add some functionality to your product to display a static page (not knowing anything about your product) Once Opera displays your page, you can use the second window for your presentation or close Opera and use another browser or interface of your choice. Other browsers may have this feature now but using Opera I know this feature is available. I've used it before when there have been server problems and I needed to keep an eye on it. I set another computer near me to a WEB page on the server and set it to reload often. For example, RedHat 9.0 and Zope 2.6.x. I finally down graded to RH 7.3.x and am running Zope 2.6.x without interuption. Thomas 10/13/2003 4:21:19 AM, Ulla Theiss <u.theiss@eurodata.de> wrote:
Hello list,
we have a local Zope installation on a laptop to present our product.
Our problem is, that starting Zope lasts a relative long time and we have no feedback when our product is ready to work.
Is there a possiblity to show the user e.g. a message box when zope and the product are ready to work and the user can start the presentation?
For example is there a method that can be overwritten in order to do that?
Many thanks in advance, Ulla.
_______________________________________________ Zope maillist - Zope@zope.org http://mail.zope.org/mailman/listinfo/zope ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope-dev )
----------------------------------------------------------------- Thomas McMillan Grant Bennett Appalachian State University Computer Consultant III University Library Voice: 828 262 6587 FAX: 828 262 2797 "Windows: A 32-bit GUI on top of a 16-bit wrapper around an 8-bit interpretation of a 4-bit operating system written by a 2-bit company." -David Simmons
participants (4)
-
BZ -
J Cameron Cooper -
Thomas M G Bennett -
Ulla Theiss