Bug 208670 - Imageable Area still ignored
Summary: Imageable Area still ignored
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: system-config-printer
Version: 4.3
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Tim Waugh
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-09-29 23:38 UTC by Mark Wagner
Modified: 2009-01-22 15:39 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-22 15:39:42 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0022 0 normal SHIPPED_LIVE system-config-printer bug fix update 2009-01-22 15:39:40 UTC

Description Mark Wagner 2006-09-29 23:38:43 UTC
Description of problem:

As reported in #134260, the Imageable Area seetings in system-config-printer are
still ignored.

Version-Release number of selected component (if applicable):

system-config-printer-0.6.116.5-1
Red Hat Enterprise Linux AS release 4 (Nahant Update 3)

How reproducible:

Always. Set Imageable Area in system-config-print and then examine the printer's
PPD file in /etc/cups/ppd.

Steps to Reproduce:

1. In system-config-printer set up a queue, say N2-215-HP-LJ4100.

2. Under the "Queue Options" tab and "Imageable Area" group set all margins to 36.

3. Select OK, then Apply, then Exit.

4. grep "ImageableArea Letter/US" /etc/cups/ppd/N2-215-HP-LJ4100.ppd

Actual results:

*ImageableArea Letter/US Letter: "0 0 612 792"

Expected results:

*ImageableArea Letter/US Letter: "36 36 576 756"

Additional info:

Please suggest a work-around if there is no fix.

Comment 1 Tim Waugh 2008-01-10 12:04:45 UTC
This part of util/backend.py contains an error:

   489      for i in range (n, len (ppd)):
   490          if ppd[i].startswith ("*ImageableArea %s/" % size):
   491              try:
   492                  border = ppd[i].split ('"')[1].split (" ")
   493                  if border.find ('.') != -1:
   494                      border = border[:border.index ('.')]
   495              except:
   496                  return ppd

Lines 493-494 are trying to operate on border as though it were a string when it
is a list of strings.  The operation should iterate over the list.  An exception
is caused and the function returns.

Comment 2 RHEL Program Management 2008-02-01 19:12:03 UTC
This request was evaluated by Red Hat Product Management for
inclusion, but this component is not scheduled to be updated in
the current Red Hat Enterprise Linux release. If you would like
this request to be reviewed for the next minor release, ask your
support representative to set the next rhel-x.y flag to "?".

Comment 9 errata-xmlrpc 2009-01-22 15:39:42 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0022.html


Note You need to log in before you can comment on or make changes to this bug.