[Zope] Another import doesn't find the module

Dylan Reinhardt zope@dylanreinhardt.com
28 May 2003 13:43:29 -0700


On Wed, 2003-05-28 at 12:33, Stacy Roberts Ladnier wrote:
> > > The line I had that read 
> > >    from Products.Resources.FGDC import profile 
> > > failed. 
> 
> Before class1 of DISTINFO.py, I tried the above statement and recieve 
> a 'can't import name profile'. 
> 
> > > However, this line works like a charm:
> > >    from Products.Resources.FGDC import DISTRIB
> 
> and is located directly under the above line. Totally baffling me.

Is the solution Tom gave you not working?

>       Distinfo #1 is in the FGDC directory. Distinfo #2 will live in 
> the extensions directory. I want to set of a script in the scripts 
> directory that will cause the #2 to be added. By the way, both of these 
> objects(#1 and #2) should have the same metatype.

This sounds like a pretty brittle system.  Why not create a single
product that can instantiate itself (or subobjects) more than one way?

Dylan