[Zope] Re: symbols undefined after product refresh?
Derrick Hudson
dman at dman13.dyndns.org
Fri Apr 8 10:56:15 EDT 2005
On Fri, Apr 08, 2005 at 03:20:52PM +0200, Jürgen Herrmann wrote:
[...]
| ps: this does not only happen to my SubClassCatalog, this also hits
| f.ex. "from random import randint" where randint gets undefined.
That makes sense. The 'from-import' syntax creates a name in the
local namespace that refers to the indicated object. If you reload
the module you imported from, then that object is going to go away (or
at least be re-constructed) and the reference you had may no longer be
valid. It may be the case that reloading your module fails to
properly handle all of the imports. Basically that's just the way it
is and it is difficult to try and implement reload completely
correctly (which is what Zope's refresh depends on ).
As has already been noted, simply restart and you definitely won't
have any problems. Use a faster machine if the restart time is too
long ;-).
HTH,
-D
--
One OS to rule them all, one OS to find them,
One OS to bring them all and in the darkness bind them,
In the Land of Redmond, where the Shadows lie.
www: http://dman13.dyndns.org/~dman/ jabber: dman at dman13.dyndns.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope/attachments/20050408/d5c0fa01/attachment.bin
More information about the Zope
mailing list