[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-pim
Subject:    Re: [Kde-pim] (real) bug in csv import
From:       Cornelius Schumacher <schumacher () kde ! org>
Date:       2002-06-29 21:09:35
[Download RAW message or body]

On Saturday 29 June 2002 22:50, Tobias Koenig wrote:
>
> there is an other bug in csv import of kaddressbook.
> You can load a addressbook.csv where a row looks like that:
>
> 	"Tobias","Koenig","more values"...
>
> After selecting this file, the values in table are shown with the
> leading and ending '"' signs.
> Now you can assign a type to a column and say in what format the
> values should be shown. In this case you select the 'unquoted' format
> and all values in the column are shown unquoted in table.
>
> Now the bug: If you want to add this columns to addressbook, all
> values a added _quoted_ to it.
> The problem: When calling convert() for all lines, it does not use
> the new formatted content of the table cells, but the old values of
> the mData.

Hmm, you are right. That's something I didn't thought about when adding 
the mData.

> Can I change the convert() method of KImportColumn to use the cell
> content instead of mData, or will there appear any side effects?

The table cell only contains the fields which are on the screen and not 
all fields of the file, so this will not work. You have to make sure 
that the format is used when filling mData.

-- 
Cornelius Schumacher <schumacher@kde.org>
_______________________________________________
kde-pim mailing list
kde-pim@mail.kde.org
http://mail.kde.org/mailman/listinfo/kde-pim
kde-pim home page at http://pim.kde.org/
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic