[Zope] html2pdf error

K. Praveen Kumar praveen at softprosys.com
Fri Sep 26 01:23:08 EDT 2003


Dear Dennis Allison,

I did in the following way:

1) I kept the html2pdf.py file under Extensions directory
(/var/zope/Extensions/)
2) I went to the desired folder in Zope Management and selected the
"External Method" to add.
3) I have given ID, Title, Module Name and Function Name as html2pdf

I am using 

Zope-2.6.1b1-1
python-2.2.2-26
OS RedHat 9.0 with kernel-2.4.20-20.9

Thanks & Regards
Praveen

On Fri, 2003-09-26 at 10:01, Dennis Allison wrote:
> 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
> > > > *********************************************************************
> > > > 
-- 
Thanks & Regards
Praveen Kumar
SoftPro Systems Ltd

-----------------------SOFTPRO DISCLAIMER------------------------------



Information contained in this E-MAIL and any attachments are

confidential being  proprietary to SOFTPRO SYSTEMS  is 'privileged'

and 'confidential'.



If you are not an intended or authorised recipient of this E-MAIL or

have received it in error, You are notified that any use, copying or

dissemination  of the information contained in this E-MAIL in any

manner whatsoever is strictly prohibited. Please delete it immediately

and notify the sender by E-MAIL.



In such a case reading, reproducing, printing or further dissemination

of this E-MAIL is strictly prohibited and may be unlawful.



SOFTPRO SYSYTEMS does not REPRESENT or WARRANT that an attachment

hereto is free from computer viruses or other defects. 



The opinions expressed in this E-MAIL and any ATTACHEMENTS may be

those of the author and are not necessarily those of SOFTPRO SYSTEMS.

------------------------------------------------------------------------




More information about the Zope mailing list