def can_delete(self):
        allowed = set(self._meta.list_allowed_methods + self._meta.detail_allowed_methods)
        return 'delete' in allowed
Registers the listener for the ListView.onselection event.
dataset/ETHPy150Open toastdriven/piecrust/piecrust/resources.py/Resource.can_delete--crossover with--dataset/ETHPy150Open dddomodossola/remi/remi/gui.py/ListView.set_on_selection_listener