Module: printers

This module is used to deal with networked printers

Members

linuxmusterLinuxclient7.printers.installPrinter(networkPath, name=None, username=None)[source]

Installs a networked printer for a user

Parameters
  • networkPath (str) – The network path of the printer

  • name (str, optional) – The name for the printer, defaults to None

  • username (str, optional) – The username of the user whom the is installed printer for. Defaults to the executing user

Returns

True on success, False otherwise

Return type

bool

linuxmusterLinuxclient7.printers.translateSambaToIpp(networkPath)[source]

Translates a samba url, like serverPRINTER-01, to an ipp url like ipp://server/printers/PRINTER-01.

Parameters

networkPath (str) – The samba url

Returns

An ipp url

Return type

str

linuxmusterLinuxclient7.printers.uninstallAllPrintersOfUser(username)[source]

Uninstalls all printers of a given user

Parameters

username (str) – The username of the user

Returns

True on success, False otherwise

Return type

bool