[reportlab-users] RE: patches in doctemplates.py

Henning von Bargen reportlab-users@reportlab.com
Mon, 23 Feb 2004 09:03:13 +0100


And yet another one.
Perhaps I'm the only one using this feature,
but I remember I had to do change one underscore
in doctemplates.py in order to get the progress handler (PASS and/or =
PAGE)
working.
I'm not 100% sure about it, but I think it was in handle_pageEnd(self):
It should really read
            if self._onProgress:
                self._onProgress('PAGE', self.canv.getPageNumber())
whereas in the 1.19 source,
one of the line contained "onProgress" and the other one =
"_oneProgress".

Henning

> -----Urspr=FCngliche Nachricht-----
> Von:	reportlab-users-request@reportlab.com
[SMTP:reportlab-users-request@reportlab.com]
> Gesendet am:	Montag, 23. Februar 2004 08:10
> An:	reportlab-users@reportlab.com
> Betreff:	reportlab-users digest, Vol 2 #38 - 4 msgs
>=20
> Send reportlab-users mailing list submissions to
> 	reportlab-users@reportlab.com
>=20
> To subscribe or unsubscribe via the World Wide Web, visit
> 	http://two.pairlist.net/mailman/listinfo/reportlab-users
> or, via email, send a message with subject or body 'help' to
> 	reportlab-users-request@reportlab.com
>=20
> You can reach the person managing the list at
> 	reportlab-users-admin@reportlab.com
>=20
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of reportlab-users digest..."
>=20
>=20
> Today's Topics:
>=20
>    1. Re: Patches (Aleksander Piotrowski)
>    2. Re: Patches (Robin Becker)
>    3. Errata in BaseDocTemplate (Robert McPeak)
>    4. reportlab and modpython (Hector Sanchez SanMartin)
>=20
> --__--__--
>=20
> Message: 1
> Date: Sun, 22 Feb 2004 16:59:17 +0100
> From: Aleksander Piotrowski <aleksander.piotrowski@nic.com.pl>
> To: reportlab-users@reportlab.com
> Subject: Re: [reportlab-users] Patches
> Reply-To: reportlab-users@reportlab.com
>=20
> Robin Becker <robin@reportlab.com> wrote:
>=20
> > Post here please.
>=20
> So here it goes:
>=20
> Index: graphics/renderPM.py
> =
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
> RCS file: /cvsroot/reportlab/reportlab/graphics/renderPM.py,v
> retrieving revision 1.45
> diff -u -r1.45 renderPM.py
> --- graphics/renderPM.py	28 Jan 2004 13:03:19 -0000	1.45
> +++ graphics/renderPM.py	22 Feb 2004 15:46:48 -0000
> @@ -26,7 +26,7 @@
>  except ImportError, errMsg:
>      raise ImportError, "No module named _renderPM\n" + \
>          (str(errMsg)!=3D'No module named _renderPM' and "it may be =
the
wrong version or badly installed!" or
> -                                    "see
http://www.reportlab.com/rl_addons.html")
> +                                    "see
http://www.reportlab.org/rl_addons.html")
> =20
>  from types import TupleType, ListType
>  _SeqTypes =3D (TupleType,ListType)
>=20
>=20
> This one is trivial :)
>=20
> I'm preparing port for OpenBSD and will submit here patches which fix
> (or at least I think so) some 64bit issues.
>=20
> Thanks,
>=20
> Alek
> --=20
> Przy dw=F3ch takich okazjach potraktowano Nell zgodnie z jej
najczarniejszymi
> oczekiwaniam. Podczas tych okropno=B6ci mia=B3a zamkni=EAte oczy, =
wiedz=B1c, =BFe
> cokolwiek zrobi=B1 z wehiku=B3em jej duszy, sama dusza pozostanie =
nietkni=EAta,
tak
> jak ksi=EA=BFyc, kt=F3ry spokojnie patrzy z g=F3ry na w=B6ciek=B3e =
zakl=EAcia szaman=F3w.
>  -- Neal Stephenson, Diamentowy Wiek
>=20
> --__--__--
>=20
> Message: 2
> Date: Sun, 22 Feb 2004 17:37:29 +0000
> To: reportlab-users@reportlab.com
> From: Robin Becker <robin@reportlab.com>
> Subject: Re: [reportlab-users] Patches
> Reply-To: reportlab-users@reportlab.com
>=20
> In article <20040222155917.GG14254@cyprian>, Aleksander Piotrowski
> <aleksander.piotrowski@nic.com.pl> writes
> >Robin Becker <robin@reportlab.com> wrote:
> >
> >> Post here please.
> >
> >So here it goes:
> >
> .......
> >med _renderPM' and "it may be the wrong=20
> >version or badly installed!" or
> >-                                    "see
http://www.reportlab.com/rl_addons.htm
> >l")
> >+                                    "see
http://www.reportlab.org/rl_addons.htm
> >l")
> >=20
> > from types import TupleType, ListType
> > _SeqTypes =3D (TupleType,ListType)
> >
> >
> >This one is trivial :)
> >
> >I'm preparing port for OpenBSD and will submit here patches which =
fix
> >(or at least I think so) some 64bit issues.
> >
>=20
> No matter how trivial, thanks for the effort and good luck with the =
64
> bit stuff. I suspect that will be hard.
>=20
> >Thanks,
> >
> >Alek
>=20
> --=20
> Robin Becker
>=20
> --__--__--
>=20
> Message: 3
> From: Robert McPeak <robert.mcpeak@keyon.com>
> To: reportlab-users@reportlab.com
> Date: Thu, 19 Feb 2004 15:22:22 -0800
> Subject: [reportlab-users] Errata in BaseDocTemplate
> Reply-To: reportlab-users@reportlab.com
>=20
> Hi -=20
>=20
> I noticed that the author and title args to the BaseDocTemplate
> constructor get set, but never used, so I made a small change to
> handle_documentBegin()
>=20
>         self.page =3D 0
>        =20
>         # add in the annotations supported by the constructor RAM
> 2004-02-19
>         self.canv.setAuthor(self.author)
>         self.canv.setTitle(self.title)
>        =20
>         self.beforeDocument()
>=20
> It works, but I'm not sure that this is the correct place to make the
> change...comments?
>=20
> Rob McPeak
> KeyOn Communications, LLC.
>=20
>=20
> --__--__--
>=20
> Message: 4
> Date: Fri, 20 Feb 2004 18:04:42 +0100
> From: Hector Sanchez SanMartin <Hector.Sanchez@cern.ch>
> Organization: CERN
> To: reportlab-users@reportlab.com
> Subject: [reportlab-users] reportlab and modpython
> Reply-To: reportlab-users@reportlab.com
>=20
>     Hello,
>=20
>     One of the projects I'm working on is running using=20
> Apache+mod_python+Python2.3 and we would like to use reportlab in =
order=20
> to generate the PDFversion of some items. I have found in your =
archives=20
> a reference=20
>
(<http://two.pairlist.net/pipermail/reportlab-users/2002-December/000971=
.htm
l>)=20
> advising not to use mod_python with reportLab as it could cause some=20
> troubles, however this refence is quite old (~2002) and I was =
wondering=20
> if what this email explains is still valid and we could run into =
troubles.
>=20
>     We have done some tests and we are now having strange behaviour =
of=20
> reportlab/mod_python. The same code runs fine from command line so I=20
> suspect mod_python and reportlab are colliding in someway. Do you =
have=20
> any idea?
>=20
>     Any help would be very welcome.
>=20
>     Thanks in advance and best regards
>=20
> --=20
> Hector Sanchez
>=20
> CERN Document Server ** <http://cds.cern.ch/> ** =
<cds.support@cern.ch>
> InDiCo Project       ** <http://cern.ch/indico>
> Room: Bldg 510-R-007 ** Voice: +41-22-7673829 ** Fax: +41-22-7678142
>=20
>=20
>=20
>=20
> --__--__--
>=20
> _______________________________________________
> reportlab-users mailing list
> reportlab-users@reportlab.com
> http://two.pairlist.net/mailman/listinfo/reportlab-users
>=20
>=20
> End of reportlab-users Digest