Author: johannes
Date: 2005-05-03 03:32:55 -0500 (Tue, 03 May 2005)
New Revision: 7511
Modified:
trunk/gnue-common/src/datasources/drivers/file/Base.py
trunk/gnue-common/src/datasources/drivers/file/dbffile.py
Log:
Use a simpler form of _loadFile
Modified: trunk/gnue-common/src/datasources/drivers/file/Base.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/file/Base.py 2005-05-02
12:31:08 UTC (rev 7510)
+++ trunk/gnue-common/src/datasources/drivers/file/Base.py 2005-05-03
08:32:55 UTC (rev 7511)
@@ -251,7 +251,7 @@
@param filename: Filename
@param table: Table name (only useful if a file can contain more than one
table)
- @return: List of fieldname/value dictionaries containing all data of the
- complete file.
+ @return: iterable object of fieldname/value dictionaries containing the
+ records of the file. This object must implement __len__ ().
"""
return []
Modified: trunk/gnue-common/src/datasources/drivers/file/dbffile.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/file/dbffile.py 2005-05-02
12:31:08 UTC (rev 7510)
+++ trunk/gnue-common/src/datasources/drivers/file/dbffile.py 2005-05-03
08:32:55 UTC (rev 7511)
@@ -64,4 +64,4 @@
def _loadFile (self, filename, table):
- return [rec for rec in dbf.dbf (filename)]
+ return dbf.dbf (filename)
_______________________________________________
Commit-gnue mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/commit-gnue