Back to index

system-config-printer  1.3.9+20120706
LocalOrRemote.py
Go to the documentation of this file.
00001 #!/usr/bin/python
00002 
00003 ## Printing troubleshooter
00004 
00005 ## Copyright (C) 2008 Red Hat, Inc.
00006 ## Copyright (C) 2008 Tim Waugh <twaugh@redhat.com>
00007 
00008 ## This program is free software; you can redistribute it and/or modify
00009 ## it under the terms of the GNU General Public License as published by
00010 ## the Free Software Foundation; either version 2 of the License, or
00011 ## (at your option) any later version.
00012 
00013 ## This program is distributed in the hope that it will be useful,
00014 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
00015 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016 ## GNU General Public License for more details.
00017 
00018 ## You should have received a copy of the GNU General Public License
00019 ## along with this program; if not, write to the Free Software
00020 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
00021 
00022 from base import *
00023 class LocalOrRemote(Multichoice):
00024     def __init__ (self, troubleshooter):
00025         Multichoice.__init__ (self, troubleshooter, "printer_is_remote",
00026                               _("Printer Location"),
00027                               _("Is the printer connected to this computer "
00028                                 "or available on the network?"),
00029                               [(_("Locally connected printer"), False),
00030                                (_("Network printer"), True)],
00031                               "Local or remote?")
00032 
00033     def display (self):
00034         return not self.troubleshooter.answers['cups_queue_listed']