Changeset 799
- Timestamp:
- 02/12/03 12:31:51 (22 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/cgi-bin/printquota.cgi
r794 r799 17 17 # 18 18 # $Log$ 19 # Revision 1.2 2003/02/12 11:31:51 jalet 20 # doesn't use the jaxml module anymore 21 # 19 22 # Revision 1.1 2003/02/10 13:41:38 jalet 20 23 # repykota cgi script added. … … 26 29 import cgi 27 30 28 import jaxml31 header = """Content-type: text/html 29 32 30 x = jaxml.CGI_document() 31 x.html() 32 x._push() 33 x.head() 34 x.title("Print Quota Report") 35 x._pop() 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>""" 36 41 37 x.h2("Print Quota Report") 42 footer = """ 43 </pre> 44 </body> 45 </html>""" 38 46 39 x.pre() 47 print header 40 48 41 49 out = os.popen("repykota") 42 x._text(out.read())50 print out.read().strip() 43 51 out.close() 44 52 45 x._output() 53 print footer