def _on_action_enabled_changed(self, action, trait_name, old, new):

        self.tool_bar.EnableTool(self.control_id, action.enabled and action.visible)

        return
Validates unique constrains on the document.
dataset/ETHPy150Open enthought/pyface/pyface/ui/wx/action/action_item.py/_Tool._on_action_enabled_changed--crossover with--dataset/ETHPy150Open jschrewe/django-mongodbforms/mongodbforms/documents.py/BaseDocumentForm.validate_unique