def get_attrs(self, item_list, user, is_public=False):
    Event.objects.bind_nodes(item_list, 'data')
    results = {}
    for item in item_list:
        user_interface = item.interfaces.get('sentry.interfaces.User')
        if user_interface:
            user_data = user_interface.to_json()
        else:
            user_data = None
        device_interface = item.interfaces.get('device')
        if device_interface:
            device_data = device_interface.to_json()
        else:
            device_data = None
        sdk_interface = item.interfaces.get('sdk')
        if sdk_interface:
            sdk_data = sdk_interface.to_json()
        else:
            sdk_data = None
        results[item] = {'entries': self._get_entries(item, user, is_public=is_public), 'user': user_data, 'sdk': sdk_data, 'device': device_data}
    return results
def get_attrs(self, item_list, user, is_public=False):
    Event.objects.bind_nodes(item_list, 'data')
    results = {}
    for item in item_list:
        user_interface = item.interfaces.get('sentry.interfaces.User')
        if user_interface:
            user_data = user_interface.to_json()
        else:
            user_data = None
        device_interface = item.interfaces.get('device')
        if device_interface:
            device_data = device_interface.to_json()
        else:
            device_data = None
        sdk_interface = item.interfaces.get('sdk')
        if sdk_interface:
            sdk_data = sdk_interface.to_json()
        else:
            sdk_data = None
        results[item] = {'entries': self._get_entries(item, user, is_public=is_public), 'user': user_data, 'sdk': sdk_data, 'device': device_data}
    return results