~ubuntu-branches/ubuntu/gutsy/hplip/gutsy-security

« back to all changes in this revision

Viewing changes to ui/printerform.py

  • Committer: Bazaar Package Importer
  • Author(s): Till Kamppeter
  • Date: 2006-09-15 18:00:07 UTC
  • mfrom: (1.2.5 upstream)
  • Revision ID: james.westby@ubuntu.com-20060915180007-96mez3nck3oy5wij
Tags: 1.6.7-2ubuntu1
* Merge from debian unstable.
* Removed patches 50_ui-supportform-cleanups.dpatch and
  55_ui-supportform-debian.dpatch, there is no support window in the HP
  toolbox any more.
* HPLIP (file io/hpiod/usbext.h) includes linux/compiler.h which is not
  part of Ubuntu Linux and not needed. Removed the include with patch
  80_no-compiler.h.dpatch.
* debian/control: Let the "Conflicts:" of hpijs-ppds be only a "Breaks:"
  to facilitate an update from the previous version when both hpijs and
  hpijs-ppds are installed.

Show diffs side-by-side

added added

removed removed

Lines of Context:
384
384
            alt_nup = (nup > 1 and t == 'application/postscript' and utils.which('psnup'))
385
385
                
386
386
            if alt_nup:
387
 
                cmd = ' '.join(['psnup', '-%d' % nup, ''.join(['"', p, '"']), '| lpr -P', self.current_printer])
 
387
                cmd = ' '.join(['psnup', '-%d' % nup, ''.join(['"', p, '"']), '| lp -c -d', self.current_printer])
388
388
            else:
389
 
                cmd = ' '.join(['lpr -P', self.current_printer])
 
389
                cmd = ' '.join(['lp -c -d', self.current_printer])
390
390
 
391
391
            if copies > 1:
392
 
                cmd = ' '.join([cmd, '-#%d' % copies])
 
392
                cmd = ' '.join([cmd, '-n%d' % copies])
393
393
 
394
394
            if not all_pages and len(page_range) > 0:
395
395
                cmd = ' '.join([cmd, '-o page-ranges=%s' % page_range])