Show
Ignore:
Timestamp:
01/18/08 23:39:41 (16 years ago)
Author:
jerome
Message:

Added modules to store utility functions and application
intialization code, which has nothing to do in classes.
Modified tool.py accordingly (far from being finished)
Use these new modules where necessary.
Now converts all command line arguments to unicode before
beginning to work. Added a proper logging method for already
encoded query strings.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/bin/pkbanner

    r3288 r3294  
    4444    hasPIL = True 
    4545     
     46import pykota.appinit 
     47from pykota.utils import * 
     48 
    4649from pykota.errors import PyKotaToolError, PyKotaCommandLineError 
    4750from pykota.tool import Tool, crashed, N_ 
     
    325328            retcode = banner.main(args, options) 
    326329    except KeyboardInterrupt :         
    327         sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     330        logerr("\nInterrupted with Ctrl+C !\n") 
    328331        retcode = -3 
    329332    except PyKotaCommandLineError, msg :     
    330         sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     333        logerr("%s : %s\n" % (sys.argv[0], msg)) 
    331334        retcode = -2 
    332335    except SystemExit :