Re: Voodoo with ModuleSecurityInfo, was Re: [Zope] importing encode_base64

2005-06-10 Thread Dieter Maurer
Paul Winkler wrote at 2005-6-9 15:42 -0400: > ... >> >ModuleSecurityInfo('Products.FooProduct').declarePublic( >> >'blah', 'foo') >> >> This allows something like: >> >> from Products.FooProduct import foo >> >> But, in fact, you use >> >> from Products.FooProduct import Utils >>

Re: Voodoo with ModuleSecurityInfo, was Re: [Zope] importing encode_base64

2005-06-09 Thread Paul Winkler
On Thu, Jun 09, 2005 at 08:18:30PM +0200, Dieter Maurer wrote: > Paul Winkler wrote at 2005-6-8 20:48 -0400: > > ... > >from Products.FooProduct import Utils > >return Utils.foo(context) > > > > > >And in Products/FooProduct/__init__.py, I had this: > > > >ModuleSecurityInfo('Products.FooProduct').

Re: Voodoo with ModuleSecurityInfo, was Re: [Zope] importing encode_base64

2005-06-09 Thread Dieter Maurer
Paul Winkler wrote at 2005-6-8 20:48 -0400: > ... >from Products.FooProduct import Utils >return Utils.foo(context) > > >And in Products/FooProduct/__init__.py, I had this: > >ModuleSecurityInfo('Products.FooProduct').declarePublic( >'blah', 'foo') This allows something like: from Produc

Voodoo with ModuleSecurityInfo, was Re: [Zope] importing encode_base64

2005-06-08 Thread Paul Winkler
On Mon, Jun 06, 2005 at 05:50:42PM -0400, Paul Winkler wrote: > On Fri, Jun 03, 2005 at 04:58:57PM -0400, Paul Winkler wrote: > > Just now I saw something that *may* be related, > > some imports that were fine on zope 2.7.3 are giving me > > trouble on 2.7.6, but this is a very preliminary observat