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/pykota/storages/sqlitestorage.py

    r3288 r3294  
    3535    # TODO : to translate or not to translate ? 
    3636    raise PyKotaStorageError, "This python version (%s) doesn't seem to have the PySQLite module installed correctly." % sys.version.split()[0] 
    37  
     37     
    3838class Storage(BaseStorage, SQLStorage) : 
    3939    def __init__(self, pykotatool, host, dbname, user, passwd) : 
     
    8282        try : 
    8383            before = time.time() 
    84             self.tool.logdebug("QUERY : %s" % query) 
     84            self.querydebug("QUERY : %s" % query) 
    8585            self.cursor.execute(query) 
    8686        except self.database.Error, msg :     
     
    119119        try : 
    120120            before = time.time() 
    121             self.tool.logdebug("QUERY : %s" % query) 
     121            self.querydebug("QUERY : %s" % query) 
    122122            self.cursor.execute(query) 
    123123        except self.database.Error, msg :