[Zope] ImportError: cannot import name Persistent
John Ziniti
jziniti@speakeasy.org
Wed, 06 Nov 2002 15:01:50 -0500
I think you misunderstand. My code does:
from Globals import DTMLFile
and _Globals_ is trying to import from Persistence
Dylan Reinhardt wrote:
> You probably want:
>
> from Globals import Persistent
>
> There aren't any Python modules in the Persistence folder, which is
> why you can't find what you're looking for.
>
> HTH,
>
> Dylan
>
> At 02:22 PM 11/6/2002 -0500, you wrote:
>
>> from Persistence import Persistent, PersistentMapping
>> ImportError: cannot import name Persistent
>
>
>
> _______________________________________________
> Zope maillist - Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> ** No cross posts or HTML encoding! **
> (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce
> http://lists.zope.org/mailman/listinfo/zope-dev )
>
>