> Wotcher Chris.
> Have you ever seen
> Zope Error
> Zope has encountered an error while publishing
> Error Type: ImportError
> Error Value: import of "stripogram" is unauthorized
> >From something that looks like this:
> request = container.REQUEST
> file = request.file
> from stripogram import html2safehtml
> return html2safehtml(file, valid_tags=(b, a, i,
> I looked on Google and kicked around the Zope list
> somebody else with the prob. And I tried an external
method without a
> lot of luck either. It shouldn't have to be an
external method, right?
Well, currently it should. Script (Python)'s by default
don't allow import of things. If
you look at standard.py in the PageTemplates product,
you'll see how to make stuff
playabel with from Script (Python)'s.
If you could put this in as a feature request on the
Squishdot tracker @ SourceForge, I'll
see if I can make both functions importable by default
when I do a next release...
PS: Hope you don't mind me CC'ing in the Zope list,
others may find this useful...
Log in to post a comment.