[Zope] html2pdf error

Dennis Allison allison at sumeru.stanford.EDU
Fri Sep 26 00:31:41 EDT 2003


Hmmm.... I assume you've put the python script that calls htmldoc using 
popen2 into the Extensions directory of your Zope.  (The details 
of where the Extensions directory is to be found may vary.) 

Calling the script in the Extensions directory is accomplished by adding
an External Method Object to the folder in which is to be referenced (or
a folder which will be acquired). The External Method is invoked by
calling it from DTML, TAL, or a python script.

If that's what you're doing, I am at a bit of a loss why you would get 
that diagnostic.  What version of Zope are you using, what OS, which
Python?

On 26 Sep 2003, K. Praveen Kumar wrote:

>      Thanks for your reply. I kept that script in the External Method
> and exported into the folder where I am using that script, but still
> getting the same error. Is there any other problem?
> 
> On Thu, 2003-09-25 at 22:06, Dennis Allison wrote:
> > You need to put the script into an External Method.  Zope python scripts 
> > do not allow access to many python modules for security reasons.
> > 
> > On 25 Sep 2003, K. Praveen Kumar wrote:
> > 
> > > Dear List,
> > >      I wanted to convert the HTML file into PDF file using Zope. for
> > > this I have downloaded the script developed by Maik Jablonski. I also
> > > downloaded the htmldoc from Easy Software Products. But still it is
> > > showing the following error.
> > > 
> > > ERROR:
> > > ********************************************************************
> > > import of "popen2" from "os" is unauthorized. You are not allowed to
> > > access popen2 in this context
> > > *********************************************************************
> > > 




More information about the Zope mailing list