I tried to load dbf to database and convert field types like this:
def row_converter(row, fields):
d = {}
for name in fields:
v = row.get(name, None)
#futher converting field data
...
return d
dbf throws FieldMissing if field doesn't exists in DBF-file.
Traceback (most recent call last):
File "./load_rests.py", line 66, in row_converter
v = row.get(name, None)
File "/usr/lib/pymodules/python2.7/dbf/tables.py", line 212, in __getattr__
raise FieldMissing(name)
It's incompatible behaviour of get with python dictionaries.
IMHO it's not good.
Is it already fixed?
If not, can you fix this in next versions, please?