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

    r3290 r3294  
    408408        homedirectory = self.addPyKotaUser() 
    409409        if homedirectory is None : 
    410             sys.stderr.write("Installation can't proceed. You MUST create a system user named 'pykota'.\n") 
     410            logerr("Installation can't proceed. You MUST create a system user named 'pykota'.\n") 
    411411        else :     
    412412            self.upgradeSystem() 
     
    465465            installer = globals()[classname]() 
    466466        except KeyError :     
    467             sys.stderr.write("There's currently no support for the %s distribution, sorry.\n" % sys.argv[1]) 
     467            logerr("There's currently no support for the %s distribution, sorry.\n" % sys.argv[1]) 
    468468            retcode = -1 
    469469        else :     
     
    471471                retcode = installer.setup() 
    472472            except KeyboardInterrupt :              
    473                 sys.stderr.write("\n\n\nWARNING : Setup was aborted at user's request !\n\n") 
     473                logerr("\n\n\nWARNING : Setup was aborted at user's request !\n\n") 
    474474                retcode = -1 
    475475    sys.exit(retcode)