def handle_tabbed_response(self, tab_group, context):
        if self.request.is_ajax():
            if tab_group.selected:
                return http.HttpResponse(tab_group.selected.render())
            else:
                return http.HttpResponse(tab_group.render())
        return self.render_to_response(context)
Creates a new tool palette tool for an action item.
dataset/ETHPy150Open CiscoSystems/avos/horizon/tabs/views.py/TabView.handle_tabbed_response--crossover with--dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/action/action_item.py/_PaletteTool.__init__