Back to index

system-config-printer  1.3.9+20120706
Namespaces | Functions | Variables
check-device-ids.py File Reference

Go to the source code of this file.

Namespaces

namespace  check-device-ids

Functions

def check-device-ids.got_device
def check-device-ids.driver_uri_to_filename
def check-device-ids.driver_uri_to_pkg

Variables

tuple check-device-ids.c = cups.Connection()
 check-device-ids.devices = None
 check-device-ids.SPECIFIC_URI = None
tuple check-device-ids.id_dict = cupshelpers.parseDeviceID(sys.argv[2])
tuple check-device-ids.attrs = c.getPrinterAttributes(sys.argv[1])
tuple check-device-ids.scheme = str(SPECIFIC_URI.split (":", 1)[0])
int check-device-ids.n = 0
list check-device-ids.device_ids = []
tuple check-device-ids.make_and_model = attrs.get('device-make-and-model')
tuple check-device-ids.device_id = attrs.get('device-id')
 check-device-ids.hostname = None
tuple check-device-ids.colon = hostname.find(":")
list check-device-ids.devs = []
tuple check-device-ids.pf = probe_printer.PrinterFinder()
tuple check-device-ids.id_fields = cupshelpers.parseDeviceID(device_id)
string check-device-ids.this_id = "MFG:%s;MDL:%s;"
tuple check-device-ids.bus = dbus.SessionBus()
tuple check-device-ids.obj
tuple check-device-ids.proxy = dbus.Interface(obj, "org.freedesktop.PackageKit.Modify")
int check-device-ids.timeout = 3600
tuple check-device-ids.ppds = PPDs(c.getPPDs ())
tuple check-device-ids.makes = ppds.getMakes()
int check-device-ids.i = 1
tuple check-device-ids.item = unichr(0x251c)
tuple check-device-ids.last = unichr(0x2514)
 check-device-ids.line = item
list check-device-ids.cmd = id_fields['CMD']
list check-device-ids.drivers = ppds.ids[id_fields['MFG'].lower ()]
tuple check-device-ids.more = unichr(0x2502)
tuple check-device-ids.n_drivers = len(drivers)
int check-device-ids.j = 1
tuple check-device-ids.matches = set(ppds.getInfoFromModel (mfr, mdl))
tuple check-device-ids.mfrl = mfr.lower()
 check-device-ids.mdls = None
tuple check-device-ids.missing = set(matches)
tuple check-device-ids.ppd_device_id = ppds.getInfoFromPPDName(each)
tuple check-device-ids.ppd_id_fields = cupshelpers.parseDeviceID(ppd_device_id)
list check-device-ids.value = id_fields[field]
list check-device-ids.ppd_value = ppd_id_fields[field]