Re: [Zope-dev] from Globals import Persistent

2001-11-15 Thread R. David Murray

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  -  [EMAIL PROTECTED]
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 )



Re: [Zope-dev] from Globals import Persistent

2001-11-15 Thread Roger Espinosa


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  -  [EMAIL PROTECTED]
 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 )
 


___
Zope-Dev maillist  -  [EMAIL PROTECTED]
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 )