Re: [OVC-demo-team] Problems with RII

From: Jan Karrman <jan_at_it_dot_uu_dot_se>
Date: Thu Mar 25 2004 - 10:37:19 CST

On Thu, 25 Mar 2004, Fred McLain wrote:

> On Wed, 2004-03-24 at 22:23, Arthur Keller wrote:
> > 1. RII doesn't print the ballot, it merely writes a file called
> > ballot.ps. It needs also to issue the command:
> >
> > lpr ballot.ps
> >
> I think a small wrapper script like the one I made for gui.py might be
> appropriate:
>

I have prepared for this. What needs to be changed (in RII.py) is
the line:

printcommand = "/bin/lp -d pr4100"

and to make this part unconditional:

        if self.printps:
            try:
                lp = os.popen(printcommand, "w")
                lp.write(p.GetPostScript())
                lp.close()
            except (IOError, EOFError), e:
                print e

/Jan
==================================================================
= The content of this message, with the exception of any external
= quotations under fair use, are released to the Public Domain
==================================================================
Received on Thu Apr 1 02:40:33 2004

This archive was generated by hypermail 2.1.8 : Thu Apr 01 2004 - 02:40:37 CST