[Zope] html2pdf error
K. Praveen Kumar
praveen at softprosys.com
Fri Sep 26 01:53:06 EDT 2003
Dear Dennis Allison,
Thank you so much for your advice. I will upgrade the Zope and let you
know if I still getting any problems. Thank you once again
Thanks & Regards
Praveen
On Fri, 2003-09-26 at 11:11, Dennis Allison wrote:
> You probably should upgrade your Zope to 2.6.2b5.
>
> The use of Python 2.2 is known to work, but may cause difficulties because
> of the changes between 2.1.3 and 2.2. I suspect you may have run into one
> of those problems. Upgrading to 2.6.2b5 may help.
>
> RH9 is also known to have problems due to changes in threading and
> elsewhere. The commonly agreed upon recommendation is to upgrade to the
> latest release of everything.
>
> -d
>
> On 26 Sep 2003, K. Praveen Kumar wrote:
>
> > 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.
> >
> > ------------------------------------------------------------------------
> >
> >
> > _______________________________________________
> > Zope maillist - Zope at zope.org
> > http://mail.zope.org/mailman/listinfo/zope
> > ** No cross posts or HTML encoding! **
> > (Related lists -
> > http://mail.zope.org/mailman/listinfo/zope-announce
> > http://mail.zope.org/mailman/listinfo/zope-dev )
> >
--
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