Revision 794, 0.8 kB
(checked in by jalet, 21 years ago)
|
repykota cgi script added.
cleaner doc.
|
-
Property svn:eol-style set to
native
-
Property svn:executable set to
*
-
Property svn:keywords set to
Author Date Id Revision
|
Rev | Line | |
---|
[794] | 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.1 2003/02/10 13:41:38 jalet |
---|
| 20 | # repykota cgi script added. |
---|
| 21 | # cleaner doc. |
---|
| 22 | # |
---|
| 23 | |
---|
| 24 | import sys |
---|
| 25 | import os |
---|
| 26 | import cgi |
---|
| 27 | |
---|
| 28 | import jaxml |
---|
| 29 | |
---|
| 30 | x = jaxml.CGI_document() |
---|
| 31 | x.html() |
---|
| 32 | x._push() |
---|
| 33 | x.head() |
---|
| 34 | x.title("Print Quota Report") |
---|
| 35 | x._pop() |
---|
| 36 | |
---|
| 37 | x.h2("Print Quota Report") |
---|
| 38 | |
---|
| 39 | x.pre() |
---|
| 40 | |
---|
| 41 | out = os.popen("repykota") |
---|
| 42 | x._text(out.read()) |
---|
| 43 | out.close() |
---|
| 44 | |
---|
| 45 | x._output() |
---|