← Back to team overview

ubuntuone-users team mailing list archive

Re: Contacts schema in U1 vs in Evolution

 

Matthew Bassett wrote:
I notice from poking around desktop-couch with Futon, that the U1
contacts schema(?) uses the fields 'address1' and 'address2' , and
that evolution uses (for the same part of the address) the field
'street'.

It does, thanks for noticing.


As far as I can determine:
  * When updating a contacts address in U1 web interface (or from my
phone[1]) any existing 'street' field is removed, and 'address1' and
'address2' updated appropriately.
  * When updating a contacts address in evolution any existing
'address1' and 'address2' fields are removed and the 'street' field
updated appropriately.

This means that I can either have someones full address on U1 web
interface (and my phone) OR in Evolution, but not in both.

You are right, there is a mismatch between the two right now.

Actually, Evolution has an internal "ext" field for more address data, which is not shown in the address book, but instead merged with the "street" field into the "Address" widget.


Would it be better to preserve both sets of fields (both 'address1',
'address2' and 'street') in order to present the full address in all
locations, and when updating any of these fields map between them; for
example:
  * map 'address1' to/from first line of 'street';
  * map 'address2' to/from second line of 'street', and;
  * preserve but ignore (for mapping) any following lines of 'street'

We'll do something simpler. :-)

We updated the contacts definition on http://www.freedesktop.org/wiki/Specifications/desktopcouch/contact , by adding an "extended_address" field; then we'll update the code so that we have two matching fields in Evolution, the web interface, and the phones.


[1] A non-U1 related aside: My Nokia e71 phone is sync'ing perfectly
with U1, but on my phone 'address1' comes out as 'street' and
'address2' as 'extension' (and is presented in the order 'extension',
'street') -- I am not sure if this is due to my phone or the syncml
sync, but all the information is at least there. If anyone can explain
this ('extension' ??) to me, I would be greatful!

Yes, the component we use to talk to the phones (Funambol) uses those two fields, so we can match up everything, as said above.

--
Nicola "teknico" Larosa - nicola.larosa@xxxxxxxxxxxxx



Follow ups

References