Commit e15b7562 authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

entity.keys() has gone in 3.10, use cw_edited instead (closes #1560564)

branch : stable
parent 41e1cdba1dd2
"""addressbook hooks
:organization: Logilab
:copyright: 2001-2009 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
:copyright: 2001-2011 LOGILAB S.A. (Paris, FRANCE), license is LGPL v2.
:contact: --
:license: GNU Lesser General Public License, v2.1 -
......@@ -23,7 +23,7 @@ class AutoSetLatLng(Hook):
if not gmapkey:
geoattrs = set(('street', 'street2', 'postalcode', 'city', 'country'))
changed_attrs = set(self.entity.keys())
changed_attrs = set(self.entity.cw_edited)
if (geoattrs & changed_attrs
and not self.entity.get('latitude')
and not self.entity.get('longitude')):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment