root / pykota / trunk / pykota / requesters / external.py @ 745

Revision 745, 1.2 kB (checked in by jalet, 21 years ago)

External requester skeleton added.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
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.1  2003/02/07 13:15:01  jalet
18# External requester skeleton added.
19#
20#
21#
22
23import os
24from pykota.requester import PyKotaRequesterError
25
26class Requester :
27    """A class to send queries to printers via external commands."""
28    def __init__(self, config, printername) :
29        """Sets instance vars depending on the current printer."""
30        self.printername = printername
31        raise PyKotaRequesterError, "Requester not implemented yet."
32       
33    def getPrinterPageCounter(self, hostname) :
34        """Returns the page counter from the hostname printer via SNMP.
35       
36           Currently uses the snmpget external command. TODO : do it internally
37        """
38        raise PyKotaRequesterError, "Requester not implemented yet."
39       
Note: See TracBrowser for help on using the browser.