Dear Massimo,
i have web2py
Version 1.99.4 (2011-12-14 14:46:14) stable
i opend the dal.py and this is what i have in there :
def import_from_csv_file(self, ifile, id_map=None, null='<NULL>',
unique='uuid', *args, **kwargs):
if id_map is None: id_map={}
for line in ifile:
line = line.strip()
if not line:
continue
elif line == 'END':
return
elif not line.startswith('TABLE ') or not line[6:] in
self.tables:
raise SyntaxError, 'invalid file format'
else:
tablename = line[6:]
self[tablename].import_from_csv_file(ifile, id_map, null,
unique, *args,
**kwargs)
Regards,
>
> --
>
>
>
>
--