[Zope] Product refreshing in Zope 2.9

Dieter Maurer dieter at handshake.de
Mon Jan 30 14:48:14 EST 2006


Peter Bengtsson wrote at 2006-1-30 13:57 +0000:
> ...
>> "reloaded but not refreshed" means what?
>>
>Suppose my code looks like this::
>
> 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.

Maybe, they forgot to flush the ZODB caches (in this case,
old objects remain in the ZODB cache which still reference the old
classes) or the "resetCaches" function no longer works in ZODB 3.6?

Have a look at the sources...

-- 
Dieter


More information about the Zope mailing list