def __init__(self, request, *args, **kwargs):
        self.user = request.user
        self.forms = [
            dict(id="general", title=_("General"),
                 formtpl="admin/account_general_form.html",
                 cls=AccountFormGeneral,
                 new_args=[self.user], mandatory=True),
            dict(id="mail",
                 title=_("Mail"), formtpl="admin/mailform.html",
                 cls=AccountFormMail),
            dict(
                id="perms", title=_("Permissions"),
                formtpl="admin/permsform.html",
                cls=AccountPermissionsForm
            )
        ]
        cbargs = [self.user]
        if "instances" in kwargs:
            cbargs += [kwargs["instances"]["general"]]
        self.forms += events.raiseQueryEvent("ExtraAccountForm", *cbargs)

        super(AccountForm, self).__init__(request, *args, **kwargs)
dataset/ETHPy150Open tonioo/modoboa/modoboa/admin/forms/account.py/AccountForm.__init__/original