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
>>
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').
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
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
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
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
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.
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
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:
>
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
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
--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
12 matches
Mail list logo