kagou@agape:/usr/share/system-config-printer$ python -c 'import cups, ppds;ppds.debugging=True;c=cups.Connection();a=c.getPPDs();p=ppds.PPDs(a);print p.getPPDNameFromDeviceID("Canon","iP3000","Canon iP3000",uri="foo")'
kagou@agape: /usr/share/ system- config- printer$ python -c 'import cups, ppds;ppds. debugging= True;c= cups.Connection ();a=c. getPPDs( );p=ppds. PPDs(a) ;print p.getPPDNameFro mDeviceID( "Canon" ,"iP3000" ,"Canon iP3000",uri="foo")'