def execute(self, directory_controller): excluded_controller = directory_controller.exclude() RideExcludesChanged(old_controller=directory_controller, new_controller=excluded_controller).publish()
def execute(self, excluded_controller): directory_controller = excluded_controller.remove_from_excludes() RideExcludesChanged(old_controller=excluded_controller, new_controller=directory_controller).publish()