[Zope] Another import doesn't find the module

Dylan Reinhardt zope@dylanreinhardt.com
28 May 2003 08:38:54 -0700


This is a different problem.  I think what you want is:

import * from Products.Resources.FGDC.profile

or 

from Products.Resources.FGDC.profile import NAMES_GO_HERE

HTH,

Dylan


On Wed, 2003-05-28 at 07:33, Stacy Roberts Ladnier wrote:
> I am attempting to import another class for use and Zope now 
> complains 'cannot import name profile'.
> 
> 
> My Product structure in a bit more detail is:
> 
> Products
>   - Resources
>      -FGDC
>          -__init__.py
>          -profile.py
>      -BIO
>      -scripts
>         -script1.py
>      -dtml
>      -www
>      -extensions
>         -DISTINFO.py which contains a class of the same name
> 
> In DISTINFO.py, I have an import statement like this:
>        from Products.Resources.FGDC import profile
> 
> Can someone please tell me what I am doing wrong here??
> 
> Thanks in advance,
> Stacy
> 
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://mail.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://mail.zope.org/mailman/listinfo/zope-announce
>  http://mail.zope.org/mailman/listinfo/zope-dev )