def cups_quota_user_show(self, object): if object.options.get("printer") and object.options.get("user"): cb = notifier.Callback(self._cups_quota_user_show_return, object) pykota._pykota_get_quota_users([object.options["printer"]], cb) else: self._cups_quota_user_show_return(0, None, object) ud.debug(ud.ADMIN, ud.WARN, "CUPS.quota_user_show: no printer or no user turned over")
def cups_quota_user_show(self, object): if object.options.get('printer') and object.options.get('user'): cb = notifier.Callback(self._cups_quota_user_show_return, object) pykota._pykota_get_quota_users([object.options['printer']], cb) else: self._cups_quota_user_show_return(0, None, object) ud.debug( ud.ADMIN, ud.WARN, 'CUPS.quota_user_show: no printer or no user turned over')
def _cups_printer_quota_list_return(self, pid, status, buffer, object): cb = notifier.Callback(self._cups_printer_quota_list_return2, object, buffer) pykota._pykota_get_quota_users([object.options['printer']], cb)
def _cups_printer_quota_list_return(self, pid, status, buffer, object): cb = notifier.Callback(self._cups_printer_quota_list_return2, object, buffer) pykota._pykota_get_quota_users([object.options["printer"]], cb)