Re: Fix previewing using dvips->gs->pnmcrop

2004-04-28 Thread Jose' Matos
I will commit my patch and wait for error reports. I will do it later today. :-) -- José Abílio LyX and docbook, a perfect match. :-)

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-27 Thread Jose' Matos
On Tuesday 27 April 2004 16:44, Angus Leeming wrote: > > Ok, I think that I have a solution for that also, make the pipe > > template return a file like object to be read. > > > > What does it means $IN and $OUT in the next function? > > Read the blurb at the top of pipes.py ;-) Actually I h

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-27 Thread Angus Leeming
Andre Poenitz wrote: >> I'd buy you a beer, if only you touched the stuff ;-) > I suppose you should give him a choice of beer or cucumber juice... Nah! That'd be pandering to bad habits... -- Angus

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-27 Thread Andre Poenitz
On Tue, Apr 27, 2004 at 02:04:41PM +0100, Angus Leeming wrote: > I'd buy you a beer, if only you touched the stuff ;-) I suppose you should give him a choice of beer or cucumber juice... Andre'

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-27 Thread Angus Leeming
Jose' Matos wrote: > You are killing me, first you take great pains to make sure that > we use secure temporary files and then you use pipes. Until > python 2.3 that module also used mktemp I would jump from > a cliff if I had one near... ;-) > > Ok, I think that I have a solution f

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-27 Thread Jose' Matos
On Tuesday 27 April 2004 14:04, Angus Leeming wrote: > Jose' Matos wrote: > >> What happens for users of Python < 2.0? They continue to use > >> mktemp? > > > > I am afraid so. > > > > For almost a day I have been trying to find an alternative for > > those users. Finally I got the one attach

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-27 Thread Angus Leeming
Jose' Matos wrote: >> What happens for users of Python < 2.0? They continue to use >> mktemp? > > I am afraid so. > > For almost a day I have been trying to find an alternative for > those users. Finally I got the one attached. ;-) Jose, you've just fallen into the trap of doing my work fo

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-27 Thread Jose' Matos
On Monday 26 April 2004 15:16, Angus Leeming wrote: > > What happens for users of Python < 2.0? They continue to use mktemp? I am afraid so. For almost a day I have been trying to find an alternative for those users. Finally I got the one attached. So I will use our TempFile for python <

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-26 Thread Angus Leeming
Jose' Matos wrote: > I will write a replacement for this using TemporaryFile that is > available since 2.0 and it says that "The file is created in the > most secure manner available in the appropriate temporary directory > for the host platform." > > In the special case of 2.3 the mkstemp is

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-26 Thread Jose' Matos
On Monday 26 April 2004 14:57, Angus Leeming wrote: > > Jose'> What does "python -V" says? > > > > riemann: python -V > > Python 2.3.2 > > Jose, note that mkstemp here is my own wrapper function. I wrote it > to allow me to use tempfile.mkstemp in Python 2.3 and tempfile.mktemp > in earlier versi

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-26 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: >> "Jose'" == Jose' Matos <[EMAIL PROTECTED]> writes: > > Jose'> On Monday 26 April 2004 13:12, Jean-Marc Lasgouttes wrote: >>> legacy_lyxpreview2ppm.py > > Jose'> What does "python -V" says? > > riemann: python -V > Python 2.3.2 Jose, note that mkstemp here i

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-26 Thread Jean-Marc Lasgouttes
> "Jose'" == Jose' Matos <[EMAIL PROTECTED]> writes: Jose'> On Monday 26 April 2004 13:12, Jean-Marc Lasgouttes wrote: >> legacy_lyxpreview2ppm.py Jose'> What does "python -V" says? riemann: python -V Python 2.3.2 JMarc

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-26 Thread Jose' Matos
On Monday 26 April 2004 13:12, Jean-Marc Lasgouttes wrote: > legacy_lyxpreview2ppm.py What does "python -V" says? -- José Abílio LyX and docbook, a perfect match. :-)

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-26 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Angus> Many thanks for your help, Angus > Well, now that I opened my big mouth, I might as well help to get it > right, don't you think? As a fellow big-mouther, I tend to agree ;-) -- Angus

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-26 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Many thanks for your help, Angus Well, now that I opened my big mouth, I might as well help to get it right, don't you think? JMarc

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-26 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Angus> Jean-Marc (and anyone else interested), could I get you to > test Angus> the attached patch, as you were unable to create > previews when Angus> you tried last week. > > Thanks for the patch. The script seems to be invoked, however I get > the following error:

Re: Fix previewing using dvips->gs->pnmcrop

2004-04-26 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Jean-Marc (and anyone else interested), could I get you to test Angus> the attached patch, as you were unable to create previews when Angus> you tried last week. Thanks for the patch. The script seems to be invoked, however I get t

Fix previewing using dvips->gs->pnmcrop

2004-04-26 Thread Angus Leeming
Jean-Marc (and anyone else interested), could I get you to test the attached patch, as you were unable to create previews when you tried last week. -- AngusIndex: lib/configure.m4 === RCS file: /usr/local/lyx/cvsroot/lyx-devel/lib/c