Gajim and Geoclue. PEP flood
when geoclue sends a signal AddressChanged (or PositionChanged),
but the location data has not changed - Gajim sends the same PEP
if gajim.connections [acct]. location_info == self._data: (line 125 in / src / common / location_listener.py) does nothing (always false)
If I did:
print gajim.connections[acct].location_info
print self._data
gajim.connections[acct].send_location(self._data)
gajim.connections[acct].location_info = self._data
I see the same data but different dictionaries:
{u'countrycode': u'RU', u'locality': u'Saint Petersburg',u'country': u'Russian Federation', u'lon': u'30.27769804',u'street': u'Tramvayniy 25/3', u'timestamp': u'0', u'lat': u'59.8536579595'}
{'countrycode': dbus.String(u'RU'), 'locality': dbus.String(u'Saint Petersburg'), 'country': dbus.String(u'Russian Federation'), 'region': None, 'lon': dbus.Double(30.277698040008499), 'lat': dbus.Double(59.853657959533102), 'street': dbus.String(u'Tramvayniy 25/3'), 'timestamp': dbus.String(u'0'), 'postalcode': dbus.String(u''), 'alt': dbus.Double(0.0), 'accuracy': dbus.Double(0.0)}
Attached patch fixes this. Sorry for my english.