← Back to team overview

c2c-oerpscenario team mailing list archive

Re: [Bug 828959] Re: Import CSV file fails

 

Hello my friend,

Not sure if you checked this...  the csv file content in windows should
include "foreign" letters...  like  á  or ñ...

Regards,
-Mario


On Fri, Nov 11, 2011 at 1:00 AM, Ravi Gadhia (OpenERP) <rga@xxxxxxxxxxx>wrote:

> Hello Mario Arias,
>                   I have checked the bug but can't reproduce it with
> latest revision, create csv file in windows and import it in ubuntu it's
> work fine. would you please provide us more detail to reproduce.
>
>
> ** Changed in: openobject-client
>       Status: Confirmed => Incomplete
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/828959
>
> Title:
>  Import CSV file fails
>
> Status in OpenERP GTK Client:
>   Incomplete
>
> Bug description:
>  Hi,  when you try to import a CSV file and it has any non UTF-8
>  character, the load fails with no warning...
>
>  on win_import.py, if a try.... except is added this can be avoided,
>  like...
>
>          try:
>              datas.append(map(lambda
> x:x.decode(csv_data['combo']).encode('utf-8'), line))
>          except:
>              common.warning(_('Error on text file.\nCorrect %s and try
> again !') % (line,), _('Import Error.'), parent=parent)
>              return False
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/openobject-client/+bug/828959/+subscriptions
>

-- 
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to OpenERP Project Group.
https://bugs.launchpad.net/bugs/828959

Title:
  Import CSV file fails

Status in OpenERP GTK Client:
  Incomplete

Bug description:
  Hi,  when you try to import a CSV file and it has any non UTF-8
  character, the load fails with no warning...

  on win_import.py, if a try.... except is added this can be avoided,
  like...

          try:
              datas.append(map(lambda x:x.decode(csv_data['combo']).encode('utf-8'), line))
          except:
              common.warning(_('Error on text file.\nCorrect %s and try again !') % (line,), _('Import Error.'), parent=parent)
              return False

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-client/+bug/828959/+subscriptions


References