Re: [Zope] Editing downloaded + installed product?
On Thu, 21 Oct 1999 03:01:26 +0200, Stefan Hoffmeister wrote:
I have downloaded a nice-ish looking product, all complete with .dtml, .py, .gif etc files.
c) I do not seem to be able to add some "plain", straight-forward Python code to a ZClass that I have created from scratch; only adding an External Method *on disk* can be added?
Well, if the product includes .py files, either as external methods or Python (non-zclass) zproducts, you -will- have to edit them outside of Zope. There's just no other way.
d) I suspect that even if I modify all that on disk I will have to restart ZServer each time?
If you edit an externel method, you can just click on "Edit" in the particular external method object and Zope will reload the method for you. If you edit a Python zproduct, yes, you -will- have to restart the Zope server, again, and again and again. I've done it hundreds of times just today. Python zproduct development should definitely be done on a non-production server for this reason. -Jeff Rush
: On Wed, 20 Oct 99 23:36:59 -0500, Jeff Rush wrote:
If you edit a Python zproduct, yes, you -will- have to restart the Zope server, again, and again and again.
(Re)starting ZServer takes about 18 seconds on my development NT4 system (192 MB, 540 Mhz overclocked Celeron). I somehow feel that this is an a tad bit inappropriate time lag. Is Linux (or any other platform) any better in this respect? Is there any way to speed up this cycle? Assume, for instance, that I need to hot-fix some problem in WhatEver_Python_Product - in contrast to "just" reloading the product shutting down the whole server is a tad bit too much, don't you think?
Python zproduct development should definitely be done on a non-production server for this reason.
Is there any other way? :-)
participants (2)
-
Jeff Rush -
Stefan Hoffmeister