[Zope] ImportError: import unauthorized

Dennis Allison allison@sumeru.stanford.EDU
Mon, 15 Apr 2002 11:33:52 -0700 (PDT)


On Mon, 15 Apr 2002, Vitaly Markitantov wrote:

> I creates some Script(P7ython) in Zope:
> 
>  import time.strftime, time.strptime
>  # ...
> 
> Why it's unauthorised? I run it from manager interface - my role in Zope is Manager
> How can i resolve this problem? 
> 

Scripts run a very restricted form of Python with only limited imports.
If you need access to all of Python, you must write an External Method not
a Script.