class AddPlayersController: def __init__(self): self.view = PlayerOptionView() def __call__(self, store): self.view.diplay_players_list("players") return TournamentController()
class PlayerListController: def __init__(self): self.view = PlayerOptionView() self.data = PlayerData() def __call__(self, store): self.view.diplay_players_list(store["players"]) return ReportController()
class DeletePlayer: def __init__(self): self.view = PlayerOptionView() self.delete = PlayerData() def __call__(self, store): self.view.diplay_players_list("players") self.delete.delete_player() return PlayerController()