~ubuntu-branches/ubuntu/oneiric/foomatic-gui/oneiric

« back to all changes in this revision

Viewing changes to printconf

  • Committer: Bazaar Package Importer
  • Author(s): Christian Perrier
  • Date: 2007-02-01 21:28:40 UTC
  • mfrom: (2.1.3 edgy)
  • Revision ID: james.westby@ubuntu.com-20070201212840-myriguntibrp8qos
Tags: 0.7.7
* Non-maintainer upload to fix pending l10n issues
* Debconf translation:
  - German. Closes: #397870
  - Danish. Closes: #400787
  - Spanish. Closes: #402237
  - Galician. Closes: #405392
  - Portuguese. Closes: #408178

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
#     along with this program; if not, write to the Free Software
19
19
#     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
20
20
#
21
 
# $Id: printconf,v 1.24 2005/05/10 22:59:01 lordsutch Exp $
 
21
# $Id: printconf,v 1.25 2005/08/22 05:02:58 lordsutch Exp $
22
22
 
23
23
import foomatic
24
24
import foomatic.foomatic
104
104
# Ensure we don't overwrite any existing queues
105
105
queues = {}
106
106
existing = foomatic.foomatic.get_printer_queues()
107
 
for q in existing.queues:
108
 
    queues[q['name']] = True
 
107
if existing:
 
108
    for q in existing.queues:
 
109
        queues[q['name']] = True
109
110
 
110
111
for (device, detectdata, devdesc, detectdesc) in conns:
111
112
    # Skip everything we don't have autodetection data for