~robru/friends/simplify-contacts

« back to all changes in this revision

Viewing changes to friends/protocols/linkedin.py

  • Committer: Robert Bruce Park
  • Date: 2013-07-20 02:21:49 UTC
  • Revision ID: robert.park@canonical.com-20130720022149-07g9jn58co2cm6yz
Call _create_contact from within _push_to_eds.

Show diffs side-by-side

added added

removed removed

Lines of Context:
116
116
            connection_id = connection.get('id', 'private')
117
117
            fullname = make_fullname(**connection)
118
118
            if connection_id != 'private' and not self._previously_stored_contact(connection_id):
119
 
                self._push_to_eds(self._create_contact({
 
119
                self._push_to_eds({
120
120
                    'linkedin-id': connection_id,
121
121
                    'linkedin-name': fullname,
122
122
                    'X-URIS': connection.get(
124
124
                    'X-FOLKS-WEB-SERVICES-IDS': {
125
125
                        'remote-full-name': fullname,
126
126
                        'linkedin-id': connection_id,
127
 
                    }}))
 
127
                    }})
128
128
 
129
129
        return len(connections)