Changeset 720 for pykota/trunk/pykota/storages
- Timestamp:
- 02/06/03 15:49:04 (21 years ago)
- Location:
- pykota/trunk/pykota/storages
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
pykota/trunk/pykota/storages/postgresql.py
r700 r720 15 15 # 16 16 # $Log$ 17 # Revision 1.3 2003/02/06 14:49:04 jalet 18 # edpykota should be ok now 19 # 17 20 # Revision 1.2 2003/02/05 22:28:38 jalet 18 21 # More robust storage … … 62 65 def doParseResult(self, result) : 63 66 """Returns the result as a list of Python mappings.""" 64 if result.ntuples() > 0:67 if (result is not None) and (result.ntuples() > 0) : 65 68 return result.dictresult() 66 69 -
pykota/trunk/pykota/storages/sql.py
r719 r720 15 15 # 16 16 # $Log$ 17 # Revision 1.8 2003/02/06 14:49:04 jalet 18 # edpykota should be ok now 19 # 17 20 # Revision 1.7 2003/02/06 14:28:59 jalet 18 21 # edpykota should be ok, minus some typos … … 50 53 # storage should use fnmatch to match patterns and be storage agnostic 51 54 result = self.doQuery("SELECT printername FROM printers;") 52 result = self.doParseResult( )55 result = self.doParseResult(result) 53 56 if result is not None : 54 57 for printer in result :