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

    r3288 r3294  
    2323 
    2424import sys 
     25 
     26import pykota.appinit 
     27from pykota.utils import * 
    2528 
    2629from pykota.errors import PyKotaCommandLineError 
     
    183186            retcode = dumper.main(args, options) 
    184187    except KeyboardInterrupt :         
    185         sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     188        logerr("\nInterrupted with Ctrl+C !\n") 
    186189        retcode = -3 
    187190    except PyKotaCommandLineError, msg :     
    188         sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     191        logerr("%s : %s\n" % (sys.argv[0], msg)) 
    189192        retcode = -2 
    190193    except SystemExit :