[Zope] how to decode base64 in DTML?

Andreas Jung lists at zopyx.com
Thu May 4 23:58:42 EDT 2006



--On 4. Mai 2006 22:22:25 +0200 Jaroslav Lukesh <lukesh at seznam.cz> wrote:
>
> import cStringIO
> import mimetools
> from Products.PythonScripts.Utility import allow_module
> allow_module("base64")
>
>

Please read carefully. The documentation tells you to put allow_module()
inside somewhere in Products/YOUR_PRODUCT/__init__.py but not inside the
PythonScript itself.

-aj

-- 
ZOPYX Ltd. & Co. KG - Charlottenstr. 37/1 - 72070 Tübingen - Germany
Web: www.zopyx.com - Email: info at zopyx.com - Phone +49 - 7071 - 793376
E-Publishing, Python, Zope & Plone development, Consulting
-------------- 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/20060505/4e3f02f1/attachment.bin


More information about the Zope mailing list