[Zope-dev] Re: restrictedTraverse doesn't give the good container

2004-02-16 Thread Pascal Samuzeau
Hi, Please don't cross-post. You already posted this exact question to [EMAIL PROTECTED], and received

[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

Re: [Zope-dev] app = Zope.app() backwards incompatibility notice / discussion

2004-02-16 Thread Erik A . Dahl
Whatever happened to the ZOPE_CONFIG env idea? What I have found is that I started putting Zope.config(os.getenv(ZOPE_CONFIG)) in all my scripts. Why can't his happen within Zope.app()? Something like this. *** lib/python/Zope/__init__.py.orig 2003-12-21 19:24:25.0 -0500 ---

Re: [Zope-dev] app = Zope.app() backwards incompatibility notice / discussion

2004-02-16 Thread Chris McDonough
Nothing happened with it because by the time I got around to putting it in, the 2.7 branch was frozen for changes. Not sure about your patch, as Zope.app() can be called outside of the context of a script. Also, if the configuration has already been performed before the call to Zope.app(), it