[Zope] Product refreshing in Zope 2.9
Lennart Regebro
regebro at gmail.com
Mon Jan 30 09:18:51 EST 2006
On 1/30/06, Peter Bengtsson <peter at fry-it.com> 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/
More information about the Zope
mailing list