def get_messages(request):
 return getattr(request, '_messages', [])

def get_messages ( request ) : return getattr ( request , '_messages' , [ ] )
fetches all messages of the given thread indexed by [exploration_id] .