def _on_tree_item_activated(self, event):

        # Which item was activated?
        wxid = event.GetItem()

        # The item data is a tuple.  The first element indicates whether or not
        # we have already populated the item with its children.  The second
        # element is the actual item data.
        populated, element = self.control.GetPyData(wxid)

        # Trait notification.
        self.element_activated = element

        return
Dhis2OrgUnit.delete should delete if it's saved
dataset/ETHPy150Open enthought/pyface/pyface/viewer/tree_viewer.py/TreeViewer._on_tree_item_activated--crossover with--dataset/ETHPy150Open dimagi/commcare-hq/custom/dhis2/tests.py/Dhis2OrgUnitTest.test_delete_dhis2_org_unit_deletes