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 ... Utils.foo ...

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

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 observation