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

From: Arthur Keller <arthur_at_kellers_dot_org>
Date: Thu Mar 25 2004 - 10:52:38 CST

At 5:37 PM +0100 3/25/04, Jan Karrman wrote:
>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"

I assume it's replaced with "/usr/bin/lpr" as "which" reports for "lpr".

>
>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

Pardon my ignorance, but please tell me what it was before and what
it should be changed to? Should it instead be done through some
"debug" or "print" switch? Thanks.

Best regards,
Arthur

-- 
-------------------------------------------------------------------------------
Arthur M. Keller, Ph.D., 3881 Corina Way, Palo Alto, CA  94303-4507
tel +1(650)424-0202, fax +1(650)424-0424
==================================================================
= 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