Show
Ignore:
Timestamp:
02/12/03 12:31:51 (21 years ago)
Author:
jalet
Message:

doesn't use the jaxml module anymore

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/cgi-bin/printquota.cgi

    r794 r799  
    1717# 
    1818# $Log$ 
     19# Revision 1.2  2003/02/12 11:31:51  jalet 
     20# doesn't use the jaxml module anymore 
     21# 
    1922# Revision 1.1  2003/02/10 13:41:38  jalet 
    2023# repykota cgi script added. 
     
    2629import cgi 
    2730 
    28 import jaxml 
     31header = """Content-type: text/html 
    2932 
    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>""" 
    3641 
    37 x.h2("Print Quota Report") 
     42footer = """ 
     43    </pre> 
     44  </body> 
     45</html>"""   
    3846 
    39 x.pre() 
     47print header 
    4048 
    4149out = os.popen("repykota") 
    42 x._text(out.read()) 
     50print out.read().strip() 
    4351out.close() 
    4452 
    45 x._output() 
     53print footer