def build_delete_email_form(request, user_email): if not user_email or user_email.type == 'primary': return build_form(FailureForm, request) form = build_form(DeleteEmailForm, request) form.user_email = user_email return form
def build_change_email_form(request, user_email): if not user_email or user_email.activation_state == 'pending' or \ user_email.type == 'primary': return build_form(FailureForm, request) form = build_form(ChangeEmailForm, request) form.user_email = user_email return form
def build_new_email_form(request): return build_form(NewEmailForm, request)
def build_change_password_form(request, user): form = build_form(ChangePasswordForm, request) form.user = user return form
def build_edit_project_form(req, project): form = build_form(EditProjectForm, req, project) form.current_project = project return form
def build_signup_form(request): return build_form(SignupForm, request)
def build_edit_publication_site_form(req, site): form = build_form(EditPublicationSiteForm, req, site) form.current_site = site return form
def build_new_project_form(req): return build_form(NewProjectForm, req)
def build_new_publication_site_form(req): return build_form(NewPublicationSiteForm, req)
def build_new_application_site_form(req): return build_form(NewApplicationSiteForm, req)
def build_reset_password_form(request): return build_form(ResetPasswordForm, request)
def build_article_editor_form(req, article=None): form = build_form(ArticleEditorForm, req, article) form.current_article = article return form
def build_article_settings_form(req, article=None): form = build_form(ArticleSettingsForm, req, article) form.current_article = article return form