from Globals import Persistent
Hello, 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:
from Globals import Persistent Traceback (most recent call last): File "<stdin>", line 1, in ? File "C:\PROGRA~1\ZopeDev\lib\python\Globals.py", line 90, in ? import Acquisition, ComputedAttribute, App.PersistentExtra, os File "C:\PROGRA~1\ZopeDev\lib\python\App\PersistentExtra.py", line 87, in ? from Persistence import Persistent ImportError: cannot import name Persistent
Is this an identified and fixed bug, or should I replace "from Globals import Persistent" with something else?? Cheers, Benjamin.
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
It works, but at least for me, that was _really slow_. import ZODB seemed to do the job, and quicker to boot. Roger On Thu, 15 Nov 2001, R. David Murray wrote:
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
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
participants (3)
-
Benjamin Buffereau -
R. David Murray -
Roger Espinosa