[Zope] importing encode_base64
Andreas Jung
lists at andreas-jung.com
Thu Jun 2 13:55:53 EDT 2005
--On 2. Juni 2005 10:34:20 -0700 Varun Parange <varunsemail at yahoo.com>
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, ClassSecurityInfo
> from email.Encoders import encode_base64
>
> allow_class(encode_base64)
>
> ''
>
> however when i try using it:
>
> from Products.EmailTools import
> MIMEText,MIMEBase,MIMEMultipart,Header,encode_base64
>
> i get an error saying:
>
> Error Type: ImportError
> Error Value: cannot import name encode_base64
..the standard answer: allow_module is not a solution for all and
everything. Use external methods or write Zope Product.
-aj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 186 bytes
Desc: not available
Url : http://mail.zope.org/pipermail/zope/attachments/20050602/eed64c58/attachment.bin
More information about the Zope
mailing list