示例#1
0
 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")
示例#2
0
 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')
示例#3
0
 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)
示例#4
0
 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)