[Zope-dev] Product initialization.

Michel Pelletier michel@digicool.com
Tue, 24 Aug 1999 15:54:08 -0400


> -----Original Message-----
> From: Andreas Kostyrka [mailto:andreas@mtg.co.at]
> Sent: Tuesday, August 24, 1999 2:40 PM
> To: Robin Becker
> Cc: zope-dev@zope.org
> Subject: Re: [Zope-dev] Product initialization.
> 
> 
> On Tue, 24 Aug 1999, Robin Becker wrote:
> 
> > In article 
> <Pine.LNX.4.10.9908241833460.3968-100000@gatekeeper.zwax.mtg.
> > co.at>, Andreas Kostyrka <andreas@mtg.co.at> writes
> > >Hi!
> > >
> > >I've been wondering if there is a way to specify the 
> initialisation order
> > >of products? Or is there some defined order already?
> > >
> > >This would be important for Products that enhance existing 
> Products.
> > >(For this scenario, a function "Require_Product(name)" 
> would be most
> > > beneficial.)
> > >
> > what's wrong with "import name"?
> Well, does it work this way? ;)
> (if so, I've just again proved that I classify in "dummy users")
> 

It is safe to import something if it is allready imported.  Python will
not 'reimport' the module, it will just use the allready imported one.
This removes the need for any kind of dependancy type method.  Thank
Guido.

-Michel

> Andreas
> --
> Andreas Kostyrka                     | andreas@mtg.co.at
> phone: +43/1/7070750                 | phone: +43/676/4091256   
> MTG Handelsges.m.b.H.                | fax:   +43/1/7065299
> Raiffeisenstr. 16/9                  | 2320 Zwoelfaxing 
> AUSTRIA        
> 
> 
> 
> _______________________________________________
> Zope-Dev maillist  -  Zope-Dev@zope.org
> http://www.zope.org/mailman/listinfo/zope-dev
> 
> (To receive general Zope announcements, see:
> http://www.zope.org/mailman/listinfo/zope-announce
> 
> For non-developer, user-level issues, 
> zope@zope.org, http://www.zope.org/mailman/listinfo/zope )
>