Show
Ignore:
Timestamp:
04/15/03 13:30:57 (21 years ago)
Author:
jalet
Message:

More work done on money print charging.
Minor bugs corrected.
All tools now access to the storage as priviledged users, repykota excepted.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/postgresql.py

    r873 r915  
    2121# 
    2222# $Log$ 
     23# Revision 1.7  2003/04/15 11:30:57  jalet 
     24# More work done on money print charging. 
     25# Minor bugs corrected. 
     26# All tools now access to the storage as priviledged users, repykota excepted. 
     27# 
    2328# Revision 1.6  2003/03/29 13:45:27  jalet 
    2429# GPL paragraphs were incorrectly (from memory) copied into the sources. 
     
    8287    def doQuery(self, query) : 
    8388        """Does a query.""" 
     89        if type(query) in (type([]), type(())) : 
     90            query = ";".join(query) 
     91        query = query.strip()     
     92        if not query.endswith(';') :     
     93            query += ';' 
     94        self.database.query("BEGIN;") 
    8495        try : 
    85             return self.database.query(query) 
     96            result = self.database.query(query) 
    8697        except pg.error, msg :     
     98            self.database.query("ROLLBACK;") 
    8799            raise PyKotaStorageError, msg 
     100        else :     
     101            self.database.query("COMMIT;") 
     102            return result 
    88103         
    89104    def doQuote(self, field) :