INNER CODE UNIT · Python

_on_cron_job_deleted

antoniorodr/cronboard · src/cronboard/app.py:115

    def _on_cron_job_deleted(self, event: CronJobDeleted) -> None:
        CronLogger.delete_logs_for_identificator(event.identificator, event.ssh_client)

    def on_mount(self) -> None:
        """Loads the theme and config, and mounts the CronTable widget."""

        self.register_theme(everforest_dark_hard)
        config: dict = self.load_config()
        saved_theme: str = config.get("theme", "catppuccin-mocha")
        self.theme: str = saved_theme
        self.servers = None
        self.settings_tab = None
        self.local_table = CronTable(id="local-crontable", server_name="local")
        self.content_container.mount(self.local_table)
        self.local_table.display = True
        self.set_focus(self.local_table)
        self.tab_disabled = False

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…