Re: [Zope-dev] Understanding 2.7 Product import

2004-02-18 Thread Dieter Maurer
Erik A.Dahl wrote at 2004-2-16 14:00 -0500:
Ok 2.7 has an instance/Products directory.  What magic is letting them 
be imported?

You find this magic (implemented) in App.FindHomes.

-- 
Dieter

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
 http://mail.zope.org/mailman/listinfo/zope-announce
 http://mail.zope.org/mailman/listinfo/zope )


[Zope-dev] Understanding 2.7 Product import

2004-02-16 Thread Erik A . Dahl
Ok 2.7 has an instance/Products directory.  What magic is letting them 
be imported?  I'm running a bunch of data loader scripts that create 
persistent zope products.  I have found that:

import Globals

sets things up so that my data loader scripts can import products 
properly (even though their path is not in sys.path).  I looked around 
in Globals to figure out what's going on and didn't find it.  It would 
be nice if something in:

import Zope.

would kick off the special import magic!  It seems a lot more intuitive 
to have this at the top of the __main__ script instead of Globals.

-EAD

___
Zope-Dev maillist  -  [EMAIL PROTECTED]
http://mail.zope.org/mailman/listinfo/zope-dev
**  No cross posts or HTML encoding!  **
(Related lists - 
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )