This was fixed some time ago. It is possible the fix is still in
trunk. Will post a new version to stable soon.

On Jul 26, 4:32 pm, WillieD <wdul...@gmail.com> wrote:
> Converting value=None to pass in fix() does indeed let me import my
> numeric data.
>
> elif field.type in ('double','integer'):
>                 pass #value = None
>
> On Jul 26, 3:51 pm, WillieD <wdul...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hi All,
>
> > I'm a Web2py nube so please excuse my ignorance if I'm missing
> > something obvious.
>
> > I'm trying to import a CSV file that includes some integer and double
> > values but DAL always inserts NULL in these fields. A little
> > inspection of the 'import_from_csv_file' function reveals that the
> > embedded fix() function sets values to None if the field type is
> > double or integer.
>
> >             elif field.type in ('double','integer'):
> >                 value = None
>
> > Is there a reason for this that I'm not getting?
>
> > Thanks

Reply via email to