org.views.newsletter

The newsletter view.

Functions

get_newsletter_form(...)

news_by_newsletter(→ list[onegov.org.models.News] | None)

occurrences_by_newsletter(→ Query[Occurrence] | None)

publications_by_newsletter(→ Query[File] | None)

handle_newsletters(→ onegov.core.types.RenderData)

view_newsletter(→ onegov.core.types.RenderData)

view_subscribers(→ onegov.core.types.RenderData)

handle_new_newsletter(→ RenderData | Response)

edit_newsletter(→ RenderData | Response)

delete_newsletter(→ None)

send_newsletter(→ int)

handle_send_newsletter(→ RenderData | Response)

handle_test_newsletter(→ RenderData | Response)

handle_preview_newsletter(→ onegov.core.types.RenderData)

export_newsletter_recipients(→ RenderData | Response)

import_newsletter_recipients(→ RenderData | Response)

Module Contents

org.views.newsletter.get_newsletter_form(model: onegov.newsletter.Newsletter, request: onegov.org.request.OrgRequest) type[onegov.org.forms.NewsletterForm][source]
org.views.newsletter.news_by_newsletter(newsletter: onegov.newsletter.Newsletter, request: onegov.org.request.OrgRequest) list[onegov.org.models.News] | None[source]
org.views.newsletter.occurrences_by_newsletter(newsletter: onegov.newsletter.Newsletter, request: onegov.org.request.OrgRequest) Query[Occurrence] | None[source]
org.views.newsletter.publications_by_newsletter(newsletter: onegov.newsletter.Newsletter, request: onegov.org.request.OrgRequest) Query[File] | None[source]
org.views.newsletter.handle_newsletters(self: onegov.newsletter.NewsletterCollection, request: onegov.org.request.OrgRequest, form: onegov.org.forms.SignupForm, layout: onegov.org.layout.NewsletterLayout | None = None, mail_layout: onegov.org.layout.DefaultMailLayout | None = None) onegov.core.types.RenderData[source]
org.views.newsletter.view_newsletter(self: onegov.newsletter.Newsletter, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.NewsletterLayout | None = None) onegov.core.types.RenderData[source]
org.views.newsletter.view_subscribers(self: onegov.newsletter.RecipientCollection, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.RecipientLayout | None = None) onegov.core.types.RenderData[source]
org.views.newsletter.handle_new_newsletter(self: onegov.newsletter.NewsletterCollection, request: onegov.org.request.OrgRequest, form: onegov.org.forms.NewsletterForm, layout: onegov.org.layout.NewsletterLayout | None = None) RenderData | Response[source]
org.views.newsletter.edit_newsletter(self: onegov.newsletter.Newsletter, request: onegov.org.request.OrgRequest, form: onegov.org.forms.NewsletterForm, layout: onegov.org.layout.NewsletterLayout | None = None) RenderData | Response[source]
org.views.newsletter.delete_newsletter(self: onegov.newsletter.Newsletter, request: onegov.org.request.OrgRequest) None[source]
org.views.newsletter.send_newsletter(request: onegov.org.request.OrgRequest, newsletter: onegov.newsletter.Newsletter, recipients: Iterable[Recipient], is_test: bool = False, layout: onegov.org.layout.DefaultMailLayout | None = None) int[source]
org.views.newsletter.handle_send_newsletter(self: onegov.newsletter.Newsletter, request: onegov.org.request.OrgRequest, form: onegov.org.forms.NewsletterSendForm, layout: onegov.org.layout.NewsletterLayout | None = None) RenderData | Response[source]
org.views.newsletter.handle_test_newsletter(self: onegov.newsletter.Newsletter, request: onegov.org.request.OrgRequest, form: onegov.org.forms.NewsletterTestForm, layout: onegov.org.layout.NewsletterLayout | None = None) RenderData | Response[source]
org.views.newsletter.handle_preview_newsletter(self: onegov.newsletter.Newsletter, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DefaultMailLayout | None = None) onegov.core.types.RenderData[source]
org.views.newsletter.export_newsletter_recipients(self: onegov.newsletter.RecipientCollection, request: onegov.org.request.OrgRequest, form: onegov.org.forms.ExportForm, layout: onegov.org.layout.RecipientLayout | None = None) RenderData | Response[source]
org.views.newsletter.import_newsletter_recipients(self: onegov.newsletter.RecipientCollection, request: onegov.org.request.OrgRequest, form: onegov.org.forms.newsletter.NewsletterSubscriberImportExportForm, layout: onegov.org.layout.RecipientLayout | None = None) RenderData | Response[source]