normally web2py uses the field called "something.id" as id. All it
does it to ignore it since it will use its own internal "id" on
import.

On Dec 9, 5:19 pm, Tim Michelsen <[email protected]> wrote:
> > and create a CSV like this
>
> > t.staid,t.stacall,t.location,t.state,t.lat,t.lon,t.elev
> > 010017,ENFR,FRIGG,NO,5956N,00200E,0
> > 010015,ENBL,FORDE/BRINGELAND,NO,6127N,00552E,0150
> > 010030,,HORNSUND RIVER,NO,7700N,01530E,0012
> > ....
>
> > note that if elev is missing you must put a 0 (zero).
>
> Thanks.
>
> By this appraoch you import the data into the database used by web2py.
> What if the data base already exists as a independant sqlite file and I
> just want web2py connect to that one?
>
> How would I show web2py (my model) which field to use as ID?
>
> Thanks,
> Timmie

--

You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en.


Reply via email to