def __init__(self): wizard = models.Wizard.get_instance() if wizard.has_completed(): bacula.unlock_bacula_and_start() raise MiddlewareNotUsed("wizard completed") self.load_steps()
def finish(self): self.completed = True self.save() bacula.unlock_bacula_and_start()
def __init__(self): wizard = models.Wizard.get_instance() if wizard.has_completed(): bacula.unlock_bacula_and_start() raise MiddlewareNotUsed("wizard completed")
def finish(self): self.completed = True self.save() bacula.unlock_bacula_and_start()