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

    r3288 r3294  
    3030from email.Header import Header 
    3131import email.Utils 
     32 
     33import pykota.appinit 
     34from pykota.utils import * 
    3235 
    3336from pykota.errors import PyKotaCommandLineError 
     
    164167            retcode = mailparser.main(args, options) 
    165168    except KeyboardInterrupt :         
    166         sys.stderr.write("\nInterrupted with Ctrl+C !\n") 
     169        logerr("\nInterrupted with Ctrl+C !\n") 
    167170        retcode = -3 
    168171    except PyKotaCommandLineError, msg :     
    169         sys.stderr.write("%s : %s\n" % (sys.argv[0], msg)) 
     172        logerr("%s : %s\n" % (sys.argv[0], msg)) 
    170173        retcode = -2 
    171174    except SystemExit :