Tällainen tuli vianhaun kautta, kun käytin tuota openprinter databasen ajuria:
Page 1 (Choose printer):
{'cups_dest': <cups.Dest object at 0x9ae7a60>,
'cups_instance': None,
'cups_queue': 'B2500',
'cups_queue_listed': True}
Page 2 (Check printer sanity):
{'cups_device_uri_scheme': u'usb',
'cups_printer_dict': {'device-uri': u'usb://OKI/B2500',
'printer-info': u'',
'printer-is-shared': True,
'printer-location': u'aceraspire',
'printer-make-and-model': u'Oki B2540 MFP Foomatic/Postscript (recommended)',
'printer-state': 3,
'printer-state-message': u'',
'printer-state-reasons': [u'none'],
'printer-type': 143380,
'printer-uri-supported': u'ipp://localhost:631/printers/B2500'},
'is_cups_class': False}
Page 3 (Printer state reasons):
{'printer-state-message': '', 'printer-state-reasons': 'none'}
Page 4 (Print test page):
{'test_page_attempted': True,
'test_page_completions': [(32, u'Job completed.'), (33, u'Job completed.')],
'test_page_job_id': [32, 33],
'test_page_job_status': [(32, 'B2500', 'Test Page'),
(33, 'B2500', 'Test Page')],
'test_page_jobs_cancelled': True,
'test_page_successful': False}
Page 5 (Printer state reasons):
{'printer-state-message': '', 'printer-state-reasons': 'none'}
Nyt kun luin tuota, niin mikä ihme on tuo localhost:631 ? No jaa, ei kai se siitä voi olla kiinni kun printteri kuitenkin herää.