Commit Graph

222 Commits

Author SHA1 Message Date
Xavier Morel ad670b6887 [FIX] field-selection UI in import table: replace jquery-autocomplete by select2
* jQuery autocomplete requires complex hacks to work out and look
  select-ish
* select2 is more straightforward to use for people
  expecting <select> as it's styled similarly to a (non-standard)
  select
* select2 includes built-in support for groups, no need to hack it via
  interspersed fake options
* select2 provides a nice [x] button to remove the current choice
  without having to e.g. manually remove the content of the input

Why select2 instead of Chosen? Because Chosen isn't really setup to
work from array data, it wants selects serialized in the DOM, and
while the webkit bug I'd identified previously (see web client
revid:xmo@openerp.com-20110922085812-3u1esk6czraskm01) seems fixed in
the very latest webkits, it's still present in e.g. Safari 5.1 which
I'm using. So there.

And chosen's APIDoc is almost as bad as OpenERP's.

bzr revid: xmo@openerp.com-20120906103516-h94e6hd76w41bmyx
2012-09-06 12:35:16 +02:00
Xavier Morel 38b913a3eb [FIX] comment out validation dryrun import: not for phase 1
bzr revid: xmo@openerp.com-20120903142248-v5oti2gltew9f674
2012-09-03 16:22:48 +02:00
Xavier Morel 5f89461c60 [IMP] add validation call after each field matching (slooooooowwwwww)
bzr revid: xmo@openerp.com-20120903142110-0mziyxhcku22gbm8
2012-09-03 16:21:10 +02:00
Xavier Morel 2918133ee5 [IMP] catch-and-return all errors in parse_preview
bzr revid: xmo@openerp.com-20120903140022-osfkgk4l6r2hj42j
2012-09-03 16:00:22 +02:00
Xavier Morel a4f40c0ce5 [ADD] autocompletion sections, partitioning
bzr revid: xmo@openerp.com-20120903112418-nhgmb6fs50ju0cfz
2012-09-03 13:24:18 +02:00
Xavier Morel 7c599159a5 [ADD] match display and field autocompletion UI
bzr revid: xmo@openerp.com-20120903091211-0r0jwe786olxg8ll
2012-09-03 11:12:11 +02:00
Xavier Morel cdb6869809 [IMP] add encoding csv option
and generify handling of options a bit, imprive styling, and rename 'quote' to 'quoting'

bzr revid: xmo@openerp.com-20120830141226-exli9s1hh4vij6sd
2012-08-30 16:12:26 +02:00
Xavier Morel 302cabfccb [IMP] Make CSV options (quoting and separator) customizable
Also autogen input ids so labels work correctly without collision risks, and make toggling links more flexible

bzr revid: xmo@openerp.com-20120830125232-d7g7s5oid4qivaq2
2012-08-30 14:52:32 +02:00
Xavier Morel ca6323607e [IMP] make import objects live for 12 hours when transient cron is active
bzr revid: xmo@openerp.com-20120830110603-8stvh3vpsn4vzr4f
2012-08-30 13:06:03 +02:00
Xavier Morel b1407fc769 [FIX] field for file mime type is file_type, not file_mime
bzr revid: xmo@openerp.com-20120830103928-rjtrdvkzrybfpi0c
2012-08-30 12:39:28 +02:00
Xavier Morel 246d9bd37f [IMP] rename $element to $el
bzr revid: xmo@openerp.com-20120830103245-3x8hzqquwqg27sji
2012-08-30 12:32:45 +02:00
Xavier Morel 7006b17af3 [IMP] un-b64 the import file field, use raw binary
bzr revid: xmo@openerp.com-20120830103215-trv5cjg9jvj8ano1
2012-08-30 12:32:15 +02:00
Xavier Morel 7f319f5a37 [ADD] blahblahblahblah
also basic CSS effects

bzr revid: xmo@openerp.com-20120814172322-1hx09qqh90umjdcq
2012-08-14 19:23:22 +02:00
Xavier Morel 34f9664377 [FIX] no field selected for import by the user
bzr revid: xmo@openerp.com-20120814142933-myng67f2cily6vfg
2012-08-14 16:29:33 +02:00
Xavier Morel 8fa23a9518 [ADD] actual importing, no fields matching yet
also no error pinpointing because API does not allow for it currently

bzr revid: xmo@openerp.com-20120814141456-zh9kdbjy8wj1sxys
2012-08-14 16:14:56 +02:00
Xavier Morel 323b979146 [ADD] error reporting to user during preview
bzr revid: xmo@openerp.com-20120814124835-9nkqni98ie2eyt5r
2012-08-14 14:48:35 +02:00
Xavier Morel aec461651e [FIX] NUL byte in a file leads csv.reader to raise csv.Error
bzr revid: xmo@openerp.com-20120814123112-p4iio7fl561ronln
2012-08-14 14:31:12 +02:00
Xavier Morel b8f93a7bc6 [ADD] base import logic: implement creating an import, uploading a file and displaying the preview
bzr revid: xmo@openerp.com-20120814121610-j2rpg7u5zh4h93j1
2012-08-14 14:16:10 +02:00
Xavier Morel 84ea769476 [IMP] add information to _match_headers
bzr revid: xmo@openerp.com-20120814120737-0zuxqyjhnnx1aye3
2012-08-14 14:07:37 +02:00
Xavier Morel de09433413 [ADD] feeding of import data into import_data
bzr revid: xmo@openerp.com-20120814093813-ql1uq1kb2766db0e
2012-08-14 11:38:13 +02:00
Xavier Morel 45d5003dd6 [ADD] matching and parsing of CSV, preview production
bzr revid: xmo@openerp.com-20120813134219-ijo7d2kwn82qs4tm
2012-08-13 15:42:19 +02:00
Xavier Morel b34767381b [ADD] fields fetching and filtering method for import
bzr revid: xmo@openerp.com-20120810073513-zidmkuw6yjhtuwpj
2012-08-10 09:35:13 +02:00