Beispiel #1
0
 def __init__(self, request):
     super(AccountWizard, self).__init__(request)
     self.add_step(
         WizardStep("general",
                    AccountFormGeneral,
                    _("General"),
                    new_args=[request.user]))
     self.add_step(
         WizardStep("mail", AccountFormMail, _("Mail"),
                    "admin/mailform.html"))
Beispiel #2
0
 def __init__(self, request):
     super(DomainWizard, self).__init__(request)
     self.add_step(
         WizardStep("general", DomainFormGeneral, _("General"),
                    "admin/domain_general_form.html"))
     steps = events.raiseQueryEvent("ExtraDomainWizardSteps")
     for step in steps:
         self.add_step(step)
     self.add_step(
         WizardStep("options", DomainFormOptions, _("Options"),
                    "admin/domain_options_form.html", [self.request.user]))
Beispiel #3
0
 def __init__(self, request):
     super(DomainWizard, self).__init__(request)
     self.add_step(
         WizardStep("general", DomainFormGeneral, _("General"),
                    "admin/domain_general_form.html", [request.user]))
     results = signals.extra_domain_wizard_steps.send(sender=self.__class__)
     for result in results:
         for step in result[1]:
             self.add_step(step)
     self.add_step(
         WizardStep("options", DomainFormOptions, _("Options"),
                    "admin/domain_options_form.html", [self.request.user]))
Beispiel #4
0
 def __init__(self, request):
     super(UserCalendarWizard, self).__init__(request)
     self.add_step(
         WizardStep("general",
                    UserCalendarForm,
                    _("General"),
                    new_args=[request.user]))
     self.add_step(
         WizardStep("rights",
                    RightsForm,
                    _("Rights"),
                    formtpl="modoboa_radicale/rightsform.html"))