[Zope-dev] from Globals import Persistent

R. David Murray bitz@bitdance.com
Thu, 15 Nov 2001 09:23:49 -0500 (EST)


On Wed, 14 Nov 2001, Benjamin Buffereau wrote:
> I'm using the binary version of Zope 2.4.3 for Windows. I'm trying to run the
> PollProduct example of the Zope Developper's Guide, and it seems to me that
> there is a big problem with the import of the name "Persistent". Here is what I
> get trying to import "Persistent" from the Python interpreter:

Persistent is magic.  Don't ask me how and I can't remember why, but
Zope does some magic with regards to the Persistent module.  If you
do:

import Zope
from Globals import Persistent

I believe you will find that it works.  At least, it does for me.

--RDM