def stop_scheduler(self): """ Stop scheduler if possible. """ err = self.schedcontrol.stop() if err: # user not allowed to stop scheduler alertdlg = GenericAlert(_("Scheduler Controller"), _("The Scheduler couldn't be stopped, reason:\n\n") + str(err), buttons={1: (gtk.RESPONSE_HELP, gtk.STOCK_HELP), 2: (gtk.RESPONSE_OK, gtk.STOCK_OK)}) resp = alertdlg.run() if resp == gtk.RESPONSE_HELP: show_help(self,"scheduler.html#stopping-scheduler") alertdlg.destroy()
def start_scheduler(self): """ Do necessary checks before starting Scheduler. """ err = None if not amiroot(): # running as normal user alertdlg = GenericAlert(_("Scheduler Controller"), _("You are requesting to start Scheduler as a normal \ user.\n\nIn case some scheduled scan contains any \noptions that requires \ root previlegies they will end \nup not running.\n\nIf you don't want to \ start the Scheduler now, \nselect Cancel, if you want to run it as a normal \ user \nanyway, select OK, otherwise, select Help to learn \nhow you can \ start it as root."), buttons={1: (gtk.RESPONSE_HELP, gtk.STOCK_HELP), 2: (gtk.RESPONSE_CANCEL, gtk.STOCK_CANCEL), 3: (gtk.RESPONSE_OK, gtk.STOCK_OK)}) resp = alertdlg.run() if resp == gtk.RESPONSE_OK: err = self.schedcontrol.start(from_gui=True) elif resp == gtk.RESPONSE_HELP: show_help(self,"scheduler.html#starting-scheduler-as-root") alertdlg.destroy() else: # running as root err = self.schedcontrol.start(from_gui=True) if err: alertdlg = GenericAlert(_("Scheduler Controller"), _("The Scheduler couldn't be started, reason:\n\n") + str(err), buttons={1: (gtk.RESPONSE_HELP, gtk.STOCK_HELP), 2: (gtk.RESPONSE_OK, gtk.STOCK_OK)}) resp = alertdlg.run() if resp == gtk.RESPONSE_HELP: show_help(self,"scheduler.html#starting-scheduler") alertdlg.destroy()
def _show_help(self, widget=None): show_help(self, "wizard.html")
def _show_help(self, event): """ Open SMTP Setup help """ show_help(self, "smtpsetup.html")
def _show_help(self, event): """ Open help manual. """ show_help(self, "index.html")
def help(self, widget): """ Show help documentation of Profile Editor """ show_help(self, "profile_editor.html#introduction")
def _show_help(self, event): """ Show help for Scheduling Profiles. """ show_help(self, "scheduler.html#creating-a-new-scheduling-profile")
def _show_help(self, event): """ Show help for Scan Scheduler Editor. """ show_help(self, "scheduler.html#setting-up-a-schedule")
def help(self, widget): """ Show help documentation of Profile Editor """ show_help(self,"profile_editor.html#introduction")
def _show_help(self, event): """ Open help manual. """ show_help(self,"index.html")
def _show_help(self, action): show_help(self, "index.html")