def _get_entries(self, event, user, is_public=False):
    interface_list = []
    for (key, interface) in event.interfaces.iteritems():
        if (key in self._reserved_keys):
            continue
        data = interface.get_api_context(is_public=is_public)
        if (not data):
            continue
        entry = {'data': data, 'type': interface.get_alias()}
        interface_list.append((interface, entry))
    interface_list.sort(key=(lambda x: x[0].get_display_score()), reverse=True)
    return [i[1] for i in interface_list]
def _get_entries(self, event, user, is_public=False):
    interface_list = []
    for (key, interface) in event.interfaces.iteritems():
        if (key in self._reserved_keys):
            continue
        data = interface.get_api_context(is_public=is_public)
        if (not data):
            continue
        entry = {'data': data, 'type': interface.get_alias()}
        interface_list.append((interface, entry))
    interface_list.sort(key=(lambda x: x[0].get_display_score()), reverse=True)
    return [i[1] for i in interface_list]