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

Re: [Zope] importing encode_base64

2005-06-06 Thread Paul Winkler
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 > and i have not had time to troubleshoot yet. Monday... False a

Re: [Zope] importing encode_base64

2005-06-04 Thread Tino Wildenhain
Am Freitag, den 03.06.2005, 16:58 -0400 schrieb Paul Winkler: ... > > Thats funny. I do the same and it works. > > What zope versions are you guys running? > > 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 i

Re: [Zope] importing encode_base64

2005-06-04 Thread Tino Wildenhain
Am Freitag, den 03.06.2005, 22:52 +0200 schrieb Dieter Maurer: ... > What you almost surely want is: > > ModuleSecurityInfo('email.Encoders').declarePublic('encode_base64') > This part is currently not documented in great detail. Thanks for finding and pointing out.

Re: [Zope] importing encode_base64

2005-06-03 Thread Dieter Maurer
Varun Parange wrote at 2005-6-2 10:34 -0700: >i am having problems importing encode_base64 > >i have created a product in which i have specified: >''' >from AccessControl import allow_module, allow_class, allow_type >from AccessControl import ModuleSecurityInfo, ClassSecurityInfo >from email.Encod

Re: [Zope] importing encode_base64

2005-06-03 Thread Paul Winkler
On Fri, Jun 03, 2005 at 10:50:25PM +0200, Tino Wildenhain wrote: > Am Donnerstag, den 02.06.2005, 10:34 -0700 schrieb Varun Parange: > > however when i try using it: > > > > from Products.EmailTools import > > MIMEText,MIMEBase,MIMEMultipart,Header,encode_base64 > > > > i get an error saying: >

Re: [Zope] importing encode_base64

2005-06-03 Thread Tino Wildenhain
Am Donnerstag, den 02.06.2005, 10:34 -0700 schrieb Varun Parange: > hi, > > i am having problems importing encode_base64 > > i have created a product in which i have specified: > ''' > from AccessControl import allow_module, allow_class, allow_type > from AccessControl import ModuleSecurityInfo

Re: [Zope] importing encode_base64

2005-06-03 Thread Chris Withers
Andreas Jung wrote: ..the standard answer: allow_module is not a solution for all and everything. WEll, it SHOULD work as advertised. I've always felt that stuff was flakey, be interesting to see some concrete bug reports... cheers, Chris -- Simplistix - Content Management, Zope & Python

Re: [Zope] importing encode_base64

2005-06-02 Thread Andreas Jung
--On 2. Juni 2005 10:34:20 -0700 Varun Parange <[EMAIL PROTECTED]> wrote: hi, i am having problems importing encode_base64 i have created a product in which i have specified: ''' from AccessControl import allow_module, allow_class, allow_type from AccessControl import ModuleSecurityInfo, C