def _flatten_obj_attrs(self, obj, attrs, data):
    flatten = self._flatten_key_value_pair
    ok = False
    for k in attrs:
        try:
            value = getattr(obj, k)
            flatten(k, value, data)
        except AttributeError:
            continue
        ok = True
    return ok
def _flatten_obj_attrs(self, obj, attrs, data):
    flatten = self._flatten_key_value_pair
    ok = False
    for k in attrs:
        try:
            value = getattr(obj, k)
            flatten(k, value, data)
        except AttributeError:
            continue
        ok = True
    return ok