Changeset 2352 for pykota/trunk/cgi-bin

Show
Ignore:
Timestamp:
07/10/05 13:00:16 (19 years ago)
Author:
jerome
Message:

Fix to make pykotme and pykotme.cgi work with the now external pkpgcounter.
Removed unnecessary import in pkmail.
Removed deleted files from the installation tree.
Severity: Critical if you upgraded to 1.23alpha17 already.

Files:
1 modified

Legend:

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

    r2344 r2352  
    3333from pykota import version 
    3434from pykota.tool import PyKotaTool, PyKotaToolError 
    35 from pykota.pdlanalyzer import PDLAnalyzer, PDLAnalyzerError 
    3635from pykota.cgifuncs import getLanguagePreference, getCharsetPreference 
     36 
     37try : 
     38    from pkpgpdls import analyzer, pdlparser 
     39except 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     
    3742 
    3843header = """Content-type: text/html 
     
    141146        if inputfile : 
    142147            try : 
    143                 parser = PDLAnalyzer(cStringIO.StringIO(inputfile)) 
     148                parser = analyzer.PDLAnalyzer(cStringIO.StringIO(inputfile)) 
    144149                jobsize = parser.getJobSize() 
    145             except PDLAnalyzerError, msg :     
     150            except pdlparser.PDLParserError, msg :     
    146151                self.body += '<p><font color="red">%s</font></p>' % msg 
    147152            else :