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

    r3288 r3294  
    4343 
    4444from mx import DateTime 
     45 
     46import pykota.appinit 
     47from pykota.utils import * 
    4548 
    4649from pykota.errors import PyKotaToolError 
     
    13131316        sys.exit(0)                 
    13141317    elif len(sys.argv) not in (6, 7) :     
    1315         sys.stderr.write("ERROR: %s job-id user title copies options [file]\n"\ 
     1318        logerr("ERROR: %s job-id user title copies options [file]\n"\ 
    13161319                              % sys.argv[0]) 
    13171320        sys.exit(1)