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/repykota

    r3288 r3294  
    2727 
    2828from mx import DateTime 
     29 
     30import pykota.appinit 
     31from pykota.utils import * 
    2932 
    3033from pykota.errors import PyKotaToolError, PyKotaCommandLineError 
     
    157160            retcode = reportTool.main(args, options) 
    158161    except KeyboardInterrupt :         
    159         sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     162        logerr("\nInterrupted with Ctrl+C !\n") 
    160163        retcode = -3 
    161164    except PyKotaCommandLineError, msg :     
    162         sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     165        logerr("%s : %s\n" % (sys.argv[0], msg)) 
    163166        retcode = -2 
    164167    except SystemExit :