[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnue] r7599 - trunk/gnue-common/src/datasources/drivers/file
From: |
johannes |
Subject: |
[gnue] r7599 - trunk/gnue-common/src/datasources/drivers/file |
Date: |
Wed, 15 Jun 2005 09:27:38 -0500 (CDT) |
Author: johannes
Date: 2005-06-15 09:27:35 -0500 (Wed, 15 Jun 2005)
New Revision: 7599
Modified:
trunk/gnue-common/src/datasources/drivers/file/inifile.py
Log:
Fixed introspection for ini-file driver
Modified: trunk/gnue-common/src/datasources/drivers/file/inifile.py
===================================================================
--- trunk/gnue-common/src/datasources/drivers/file/inifile.py 2005-06-15
06:20:13 UTC (rev 7598)
+++ trunk/gnue-common/src/datasources/drivers/file/inifile.py 2005-06-15
14:27:35 UTC (rev 7599)
@@ -25,6 +25,7 @@
from gnue.common.apps import errors
from gnue.common.datasources.drivers.file import Base
+from gnue.common.datasources import GSchema
# =============================================================================
@@ -80,9 +81,10 @@
# Iterate through the list of field names
# ---------------------------------------------------------------------------
- def _listFields (self, filename, table):
+ def _listFields (self, table):
- parser = self.__getParser (filename, table)
+ result = GSchema.GSFields (None)
+ parser = self.__getParser (table.filename, table.name)
fields = {}
@@ -94,9 +96,13 @@
'nativetype': 'text',
'datatype': 'text',
'required': False}
- return fields.values ()
+ for item in fields.values ():
+ GSchema.GSField (result, **item)
+ return result
+
+
# ---------------------------------------------------------------------------
# Load the file
# ---------------------------------------------------------------------------
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gnue] r7599 - trunk/gnue-common/src/datasources/drivers/file,
johannes <=