On 1/30/06, Peter Bengtsson <[EMAIL PROTECTED]> wrote:
>  class MyProduct(Folder):
>       blablabla
>  print "class MyProduct has just been reloaded"
> Then I start zope with ./bin/runzopt, debug-mode off, make a change in
> the product and press the Refresh button in the Control_Panel and
> notice how it prints
> 'class MyProduct has just been reloaded' to stdout but the change I've
> made does not happen. A quick restart of Zope makes the change happen.
> That's what I meant.

You also need to reload all products that import this product, and (as
I think was mentioned before) if you use any kind of global registy it
will most likely fail.

Personally I haven't had a situation trivial enough for refresh to
work for years...
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/
Zope maillist  -  Zope@zope.org
**   No cross posts or HTML encoding!  **
(Related lists -
 http://mail.zope.org/mailman/listinfo/zope-dev )

Reply via email to