Skip Menu |

This queue is for tickets about the WWW-Google-Contacts CPAN distribution.

Report information
The Basics
Id: 56493
Status: resolved
Priority: 0/
Queue: WWW-Google-Contacts

People
Owner: Nobody in particular
Requestors: mods [...] hank.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.05
Fixed in: (no value)



I'm a bit unclear how the module is suppose to work so not clear if these are bugs or by design. get_contacts() doesn't work the same as get_contact() -- there's no mapping done in get_contact() like there is in get_contacts(). So, fetching a contact via get_contacts() doesn't return the same data as get_contact(). I would expect that you should be able to get a contact and then update that contact w/o any changes. Groups are forced as an array when fetching contacts, but set as a single element when updating. if ( $contact->{groupMembershipInfo} ) { $data->{'atom:entry'}->{'gContact:groupMembershipInfo'} = { deleted => 'false', href => $contact->{groupMembershipInfo} }; Contacts, of course, can be associated with more than one group.
Hi Bill From version 0.07 onwards, this module now has a new interface, where contacts are represented as perl (Moose) objects, so they shall now be the same whether you get one or the full list. Please note that the code is still quite untested, please report any problems. cheers Magnus On Sun Apr 11 23:53:39 2010, HANK wrote: Show quoted text
> I'm a bit unclear how the module is suppose to work so not clear if > these are bugs or by design. > > get_contacts() doesn't work the same as get_contact() -- there's no > mapping done in get_contact() like there is in get_contacts(). So, > fetching a contact via get_contacts() doesn't return the same data as > get_contact(). I would expect that you should be able to get a
contact Show quoted text
> and then update that contact w/o any changes. > > Groups are forced as an array when fetching contacts, but set as a > single element when updating. > > if ( $contact->{groupMembershipInfo} ) { > $data->{'atom:entry'}->{'gContact:groupMembershipInfo'} = { > deleted => 'false', > href => $contact->{groupMembershipInfo} > }; > > Contacts, of course, can be associated with more than one group.
This was resolved some time back - closing ticket /m