Changeset 2352 for pykota/trunk/cgi-bin
- Timestamp:
- 07/10/05 13:00:16 (19 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/cgi-bin/pykotme.cgi
r2344 r2352 33 33 from pykota import version 34 34 from pykota.tool import PyKotaTool, PyKotaToolError 35 from pykota.pdlanalyzer import PDLAnalyzer, PDLAnalyzerError36 35 from pykota.cgifuncs import getLanguagePreference, getCharsetPreference 36 37 try : 38 from pkpgpdls import analyzer, pdlparser 39 except ImportError : # TODO : Remove the try/except after release 1.24. 40 sys.stderr.write("ERROR: pkpgcounter is now distributed separately, please grab it from http://www.librelogiciel.com/software/pkpgcounter/action_Download\n") 41 37 42 38 43 header = """Content-type: text/html … … 141 146 if inputfile : 142 147 try : 143 parser = PDLAnalyzer(cStringIO.StringIO(inputfile))148 parser = analyzer.PDLAnalyzer(cStringIO.StringIO(inputfile)) 144 149 jobsize = parser.getJobSize() 145 except PDLAnalyzerError, msg :150 except pdlparser.PDLParserError, msg : 146 151 self.body += '<p><font color="red">%s</font></p>' % msg 147 152 else :