[Zope] symbols undefined after product refresh?

Lennart Regebro regebro at gmail.com
Fri Apr 8 10:40:46 EDT 2005


On Apr 8, 2005 3:20 PM, Jürgen Herrmann <Juergen.Herrmann at xlhost.de> wrote:
> TypeError: 'NoneType' object is not callable

This means that one module that needed to be reloaded either did not
get reloaded or was reloaded before the module from where it is
called.

Exactly why this happens is hard to say, but it happens very often
where you have many modules that are dependent on each other. Refresh
basically is a bit of a pain to use on any module who contains some
sort of "core" functionality that other modules use. In principal you
need to refresh every module that uses the module that was refreshed,
and all modules that uses these modules. In the right order.

Quite often, no matter what you try, it will fail. In that case: restart.

The best way to avoid refresh-problems when debugging is to actually
use unit test, and thus avoid the whole issue...

-- 
Lennart Regebro, Nuxeo     http://www.nuxeo.com/
CPS Content Management     http://www.cps-project.org/


More information about the Zope mailing list