1 | #! /usr/bin/env python |
---|
2 | |
---|
3 | # PyKota - Print Quotas for CUPS |
---|
4 | # |
---|
5 | # (c) 2003 Jerome Alet <alet@librelogiciel.com> |
---|
6 | # You're welcome to redistribute this software under the |
---|
7 | # terms of the GNU General Public Licence version 2.0 |
---|
8 | # or, at your option, any higher version. |
---|
9 | # |
---|
10 | # You can read the complete GNU GPL in the file COPYING |
---|
11 | # which should come along with this software, or visit |
---|
12 | # the Free Software Foundation's WEB site http://www.fsf.org |
---|
13 | # |
---|
14 | # $Id$ |
---|
15 | # |
---|
16 | # $Log$ |
---|
17 | # Revision 1.2 2003/02/09 13:05:43 jalet |
---|
18 | # Internationalization continues... |
---|
19 | # |
---|
20 | # Revision 1.1 2003/02/07 13:15:01 jalet |
---|
21 | # External requester skeleton added. |
---|
22 | # |
---|
23 | # |
---|
24 | # |
---|
25 | |
---|
26 | import os |
---|
27 | from pykota.requester import PyKotaRequesterError |
---|
28 | |
---|
29 | class Requester : |
---|
30 | """A class to send queries to printers via external commands.""" |
---|
31 | def __init__(self, config, printername) : |
---|
32 | """Sets instance vars depending on the current printer.""" |
---|
33 | self.printername = printername |
---|
34 | raise PyKotaRequesterError, _("Requester not implemented yet.") |
---|
35 | |
---|
36 | def getPrinterPageCounter(self, hostname) : |
---|
37 | """Returns the page counter from the hostname printer via SNMP. |
---|
38 | |
---|
39 | Currently uses the snmpget external command. TODO : do it internally |
---|
40 | """ |
---|
41 | raise PyKotaRequesterError, _("Requester not implemented yet.") |
---|
42 | |
---|