Changeset 700 for pykota/trunk/pykota/storages/postgresql.py
- Timestamp:
- 02/05/03 23:28:38 (21 years ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/postgresql.py
r695 r700 15 15 # 16 16 # $Log$ 17 # Revision 1.2 2003/02/05 22:28:38 jalet 18 # More robust storage 19 # 17 20 # Revision 1.1 2003/02/05 21:28:17 jalet 18 21 # Initial import into CVS … … 58 61 59 62 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() 65 66