Changeset 2352

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.

Location:
pykota/trunk
Files:
5 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkmail

    r2344 r2352  
    3232 
    3333from pykota.tool import PyKotaTool, PyKotaToolError, crashed, N_ 
    34 from pykota.pdlanalyzer import PDLAnalyzer, PDLAnalyzerError 
    35  
     34     
    3635__doc__ = N_("""pkmail v%(__version__)s (c) %(__years__)s %(__author__)s 
    3736 
  • pykota/trunk/bin/pykotme

    r2344 r2352  
    3030 
    3131from pykota.tool import PyKotaTool, PyKotaToolError, crashed, N_ 
    32 from pykota.pdlanalyzer import PDLAnalyzer, PDLAnalyzerError 
     32 
     33try : 
     34    from pkpgpdls import analyzer, pdlparser 
     35except ImportError : # TODO : Remove the try/except after release 1.24. 
     36    sys.stderr.write("ERROR: pkpgcounter is now distributed separately, please grab it from http://www.librelogiciel.com/software/pkpgcounter/action_Download\n") 
     37     
    3338 
    3439__doc__ = N_("""pykotme v%(__version__)s (c) %(__years__)s %(__author__)s 
     
    8489        for filename in files :     
    8590            try : 
    86                 parser = PDLAnalyzer(filename) 
     91                parser = analyzer.PDLAnalyzer(filename) 
    8792                totalsize += parser.getJobSize() 
    88             except PDLAnalyzerError, msg :     
     93            except pdlparser.PDLParserError, msg :     
    8994                self.printInfo(msg) 
    9095             
  • 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 :     
  • pykota/trunk/MANIFEST.in

    r2345 r2352  
    1 include README FAQ COPYING LICENSE TODO NEWS CREDITS SECURITY MANIFEST.in clean.sh checkdeps.py bin/pkmail bin/pkbanner bin/autopykota bin/dumpykota bin/lprngpykota bin/cupspykota bin/edpykota bin/warnpykota bin/repykota bin/pykotme bin/pykosd bin/pkprinters bin/pkhint bin/pkbcodes bin/snmpprinterstatus bin/waitprinter.sh bin/papwaitprinter.sh bin/mailandpopup.sh bin/README 
     1include README FAQ COPYING LICENSE TODO NEWS CREDITS SECURITY MANIFEST.in clean.sh checkdeps.py bin/pkmail bin/pkbanner bin/autopykota bin/dumpykota bin/lprngpykota bin/cupspykota bin/edpykota bin/warnpykota bin/repykota bin/pykotme bin/pykosd bin/pkprinters bin/pkhint bin/pkbcodes bin/waitprinter.sh bin/papwaitprinter.sh bin/mailandpopup.sh bin/README 
    22recursive-include po README *.sh *.po *.mo *.pot 
    33recursive-include man README *.sh *.1 
  • pykota/trunk/setup.py

    r2345 r2352  
    101101      url = "http://www.librelogiciel.com/software/", 
    102102      packages = [ "pykota", "pykota.storages", "pykota.loggers", "pykota.accounters", "pykota.reporters" ], 
    103       scripts = [ "bin/pkbcodes", "bin/pkmail", "bin/pkbanner", "bin/autopykota", "bin/dumpykota", "bin/snmpprinterstatus", "bin/pykosd", "bin/edpykota", "bin/repykota", "bin/warnpykota", "bin/pykotme", "bin/pkprinters", "bin/pkhint" ], 
     103      scripts = [ "bin/pkbcodes", "bin/pkmail", "bin/pkbanner", "bin/autopykota", "bin/dumpykota", "bin/pykosd", "bin/edpykota", "bin/repykota", "bin/warnpykota", "bin/pykotme", "bin/pkprinters", "bin/pkhint" ], 
    104104      data_files = data_files)