univention.management.console.modules.printers package#

class univention.management.console.modules.printers.Instance(*args, **kwargs)[source]#

Bases: Base

list_printers(request)[source]#

Lists the printers for the overview grid.

get_printer(request, *args, **kwargs)[source]#

gets detail data for one printer.

list_users(request, *args, **kwargs)[source]#

convenience function for the username entry. Lists all user names. We don’t return this as an array of {id, label} tuples because:

  1. id and label are always the same here

  2. at the frontend, we must do some postprocessing, and an array is easier to handle.

  3. the ComboBox is able to handle a plain array.

list_jobs(request, *args, **kwargs)[source]#

lists jobs for a given printer, directly suitable for the grid

enable_printer(request, *args, **kwargs)[source]#

enable or disable a printer, depending on args.

cancel_jobs(request, *args, **kwargs)[source]#

cancels one or more print jobs. Job IDs are passed as an array that can be directly passed on to the _shell_command() method