[ZDP] BackTalk to Document Zope Developer's Guide (2.4 edition)/Testing and Debugging
webmaster@zope.org
webmaster@zope.org
Tue, 28 Jan 2003 02:00:42 -0500
A comment to the paragraph below was recently added via http://www.zope.org/Documentation/Books/ZDG/current/TestingAndDebugging.stx#3-6
---------------
To turn on product refresh capabilities place a 'refresh.txt'
file in your product's directory. Then visit the *Refresh* view
of your product in the management interface. Here you can
manually reload your product's modules with the *Refresh this
product* button. This allows you to immediately see the effect
of your changes, without restarting Zope. You can also turn on
automatic refreshing which causes Zope to frequently check for
changes to your modules and refresh your product when it detects
that your files have changed. Since automatic refresh causes
Zope to run more slowly, it is a good idea to only turn it on
for a few products at a time.
% Anonymous User - Nov. 16, 2002 4:04 am:
Does refresh.txt require any content, or is just the presence of the file enough to work the 'magic'?
% Anonymous User - Nov. 16, 2002 4:04 am:
And just how do you turn on (and off) automatic refreshing?
% Anonymous User - Nov. 28, 2002 11:39 am:
I just found the answer to your question here:
http://www.zope.org/Members/dylanr/prod_tips
It must be an empty file. Anyway, I agree that they should be more specific. About your second question, I
also don't have any idea about how does it work.
% Anonymous User - Nov. 30, 2002 1:36 pm:
Doesn't work for me (Zope 2.5.1) using the Poll Product from the earlier in the book. Neither explicit
refreshes of the product nor the refresh.txt mechanism appear to reload changed code. I need to restart zope
before changes take effect.
% Anonymous User - Jan. 28, 2003 2:59 am:
I also have to restart Zope before changes take effect. (2.6.0)