Show
Ignore:
Timestamp:
02/05/03 23:28:38 (21 years ago)
Author:
jalet
Message:

More robust storage

Files:
1 modified

Legend:

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

    r695 r700  
    1515# 
    1616# $Log$ 
     17# Revision 1.2  2003/02/05 22:28:38  jalet 
     18# More robust storage 
     19# 
    1720# Revision 1.1  2003/02/05 21:28:17  jalet 
    1821# Initial import into CVS 
     
    5861         
    5962    def doParseResult(self, result) : 
    60         """Returns the result as a Python dictionnary.""" 
    61         try : 
    62             return result.dictresult()[0] 
    63         except IndexError :     
    64             return None # not found 
     63        """Returns the result as a list of Python mappings.""" 
     64        if result.ntuples() > 0 : 
     65            return result.dictresult() 
    6566