root / pykota / trunk / cgi-bin / printquota.cgi @ 814

Revision 799, 1.0 kB (checked in by jalet, 22 years ago)

doesn't use the jaxml module anymore

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1#! /usr/bin/python
2
3# PyKota Print Quota Reports generator
4#
5# PyKota - Print Quotas for CUPS
6#
7# (c) 2003 Jerome Alet <alet@librelogiciel.com>
8# You're welcome to redistribute this software under the
9# terms of the GNU General Public Licence version 2.0
10# or, at your option, any higher version.
11#
12# You can read the complete GNU GPL in the file COPYING
13# which should come along with this software, or visit
14# the Free Software Foundation's WEB site http://www.fsf.org
15#
16# $Id$
17#
18# $Log$
19# Revision 1.2  2003/02/12 11:31:51  jalet
20# doesn't use the jaxml module anymore
21#
22# Revision 1.1  2003/02/10 13:41:38  jalet
23# repykota cgi script added.
24# cleaner doc.
25#
26
27import sys
28import os
29import cgi
30
31header = """Content-type: text/html
32
33<?xml version="1.0" encoding="iso-8859-1"?>
34<html>
35  <head>
36    <title>Print Quota Report</title>
37  </head>
38  <body>
39    <h2>Print Quota Report</h2>
40    <pre>"""
41
42footer = """
43    </pre>
44  </body>
45</html>""" 
46
47print header
48
49out = os.popen("repykota")
50print out.read().strip()
51out.close()
52
53print footer
Note: See TracBrowser for help on using the browser.