Пример #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"))
Пример #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]))
Пример #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]))
Пример #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"))