Is id_map still necessary to preserver references when using 
import_form_csv_file function?

I read this in the docs (
http://web2py.com/books/default/chapter/29/06/the-database-abstraction-layer#CSV--all-tables-at-once-
):

"When importing, the new records will be appended to the database if it is 
not empty. In general the new imported records will not have the same 
record id as the original (saved) records but web2py will restore 
references so they are not broken, even if the id values may change."

This does not have any explicit mention of using the id_map parameter, so 
is it still necessary to preserve the references between tables?

On Tuesday, March 17, 2015 at 7:33:21 AM UTC-7, Tom Clerckx wrote:
>
> Thanks.
>
> I will try to make some time and contribute in that way.
>
> Note:
> You may want to update the link to your profile on 
> http://web2py.com/init/default/who
> --> it results in a page not found.
>
> Best regards,
> Tom.
>
> On Wednesday, March 11, 2015 at 7:07:04 PM UTC+1, Tom Clerckx wrote:
>>
>> I recently learned (by searching through the google-group) the usefulness 
>> of the id_map={} parameter in the db.import_from_csv_file function.
>> I was wondering why this is not included in the documentation of web2py?
>>
>> Is this on the 'todo' list or is there another reason why it is not 
>> included?
>>
>> Best regards,
>> Tom.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to