[Zope-Coders] CallProfiler and Refresh.

Shane Hathaway shane@zope.com
Wed, 29 May 2002 16:52:29 -0400


Anthony Baxter wrote:
> The problem is that when the refresh happens, the module containing
> the hook gets stomped. This means a whole pile of things "go away" -
> certainly all the globals die. I tried making sure that all code in
> the hooks used only locals, but that also didn't help (can't remember
> exactly why right now)

And adding "__refresh_module__ = 0" to the module containing the hook 
doesn't help?

I haven't looked at CallProfiler, so I don't know whether there are 
multiple modules that contain these hooks.

> Ok, so should I check it into the trunk so that people can be exposed 
> to it and the help and UI can get more eyeballs? At the moment, simply
> not having a refresh.txt is a simply enough "fix" to the refresh problem
> until there's a solution.

Are you talking about refreshing CallProfiler or other products?  Does 
anyone besides you (the developer of the product) need to refresh 
CallProfiler?

In any case, just make sure all tests pass before checkin. :-)

Shane