[Zope] importing an existing python module into Zope python script?

Ed Leafe ed at leafe.com
Fri Jan 30 22:26:32 EST 2004


On Jan 30, 2004, at 1:19 PM, Rachel Willmer wrote:

>>     Just import base64 as you would in any other Python script:
>> import base64
>>     No reference to the Product needed.
>
> Thanks for your email. I've tried that as well, same error.
>
> Any other thoughts?

	Sorry; no. My product's __init__.py simple has:

from Products.PythonScripts.Utility import allow_module
allow_module("re")

	... and my scripts that use regexps start with:

import re

	... and they work fine.

      ___/
     /
    __/
   /
  ____/
  Ed Leafe
  http://leafe.com/
  http://opentech.leafe.com




More information about the Zope mailing list