[web2py] Re: import csv that can update some existing data in existing table

2017-01-12 Thread 黄祥
nice trick gael thanks and best regards, stifan -- 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

[web2py] Re: import csv that can update some existing data in existing table

2017-01-12 Thread Gael Princivalle
Hi Stifan. I do it like that, for example for a table called cm1: import os from cStringIO import StringIO #Original table db.define_table('cm1', Field('code', type='integer'), Field('title_en', type='string'), Field('title_it', type='string'))