| 10 | |
| 11 | === CSV === |
| 12 | Can import data from spreadsheets in CSV (Comma Separated Values) format as long as it is formatted properly. |
| 13 | |
| 14 | ==== New: S3CSV ==== |
| 15 | {{{ |
| 16 | http://host.domain/eden/hrm/person.s3csv/create?filename=c:\HR.csv&transform=/home/web2py/applications/eden/static/formats/s3csv/hrm_import.xsl |
| 17 | }}} |
| 18 | |
| 19 | ==== Old: Web2Py native ==== |
| 20 | This is 1 sheet per-table, not per-resource & foreign keys need to be as numeric IDs, so there is a fair amount of setup. |
| 21 | |
| 22 | Can do this via CLI (put file 'volunteers.csv' into private/import): |
| 23 | {{{ |
| 24 | import_file = os.path.join(request.folder, "private", "import", "volunteers.csv") |
| 25 | table.import_from_csv_file(open(import_file, "r")) |
| 26 | }}} |
| 27 | |
| 28 | or Web UI (''to be checked''): |
| 29 | * http://myhost.com/eden/vol/person.csv/create?filename=myvols.csv |
59 | | === CSV === |
60 | | Can import data from spreadsheets in CSV (Comma Separated Values) format as long as it is formatted properly. |
61 | | |
62 | | ==== New: S3CSV ==== |
63 | | {{{ |
64 | | http://host.domain/eden/hrm/person.s3csv/create?filename=c:\HR.csv&transform=/home/web2py/applications/eden/static/formats/s3csv/hrm_import.xsl |
65 | | }}} |
66 | | |
67 | | ==== Old: Web2Py native ==== |
68 | | This is 1 sheet per-table, not per-resource & foreign keys need to be as numeric IDs, so there is a fair amount of setup. |
69 | | |
70 | | Can do this via CLI (put file 'volunteers.csv' into private/import): |
71 | | {{{ |
72 | | import_file = os.path.join(request.folder, "private", "import", "volunteers.csv") |
73 | | table.import_from_csv_file(open(import_file, "r")) |
74 | | }}} |
75 | | |
76 | | or Web UI (''to be checked''): |
77 | | * http://myhost.com/eden/vol/person.csv/create?filename=myvols.csv |
78 | | |