election_day.views.manage.subscribers ===================================== .. py:module:: election_day.views.manage.subscribers Functions --------- .. autoapisummary:: election_day.views.manage.subscribers.view_sms_subscribers election_day.views.manage.subscribers.view_email_subscribers election_day.views.manage.subscribers.export_sms_subscribers election_day.views.manage.subscribers.export_email_subscribers election_day.views.manage.subscribers.handle_cleanup_subscribers election_day.views.manage.subscribers.cleanup_sms_subscribers election_day.views.manage.subscribers.cleanup_email_subscribers election_day.views.manage.subscribers.delete_subscriber election_day.views.manage.subscribers.activate_subscriber election_day.views.manage.subscribers.deactivate_subscriber Module Contents --------------- .. py:function:: view_sms_subscribers(self: onegov.election_day.collections.SmsSubscriberCollection, request: onegov.election_day.request.ElectionDayRequest) -> onegov.core.types.RenderData View a list with all SMS subscribers. .. py:function:: view_email_subscribers(self: onegov.election_day.collections.EmailSubscriberCollection, request: onegov.election_day.request.ElectionDayRequest) -> onegov.core.types.RenderData View a list with all email subscribers. .. py:function:: export_sms_subscribers(self: onegov.election_day.collections.SmsSubscriberCollection, request: onegov.election_day.request.ElectionDayRequest) -> onegov.core.types.RenderData Export all SMS subscribers as a CSV. .. py:function:: export_email_subscribers(self: onegov.election_day.collections.EmailSubscriberCollection, request: onegov.election_day.request.ElectionDayRequest) -> onegov.core.types.RenderData Export all email subscribers as a CSV. .. py:function:: handle_cleanup_subscribers(collection: onegov.election_day.collections.EmailSubscriberCollection | onegov.election_day.collections.SmsSubscriberCollection, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.SubscribersCleanupForm) -> onegov.core.types.RenderData | webob.response.Response .. py:function:: cleanup_sms_subscribers(self: onegov.election_day.collections.SmsSubscriberCollection, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.SubscribersCleanupForm) -> onegov.core.types.RenderData | webob.response.Response Deletes a list of SMS subscribers. .. py:function:: cleanup_email_subscribers(self: onegov.election_day.collections.EmailSubscriberCollection, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.SubscribersCleanupForm) -> onegov.core.types.RenderData | webob.response.Response Deletes a list of email subscribers. .. py:function:: delete_subscriber(self: onegov.election_day.models.Subscriber, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmptyForm) -> onegov.core.types.RenderData | webob.response.Response Delete a single subscriber. .. py:function:: activate_subscriber(self: onegov.election_day.models.Subscriber, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmptyForm) -> onegov.core.types.RenderData | webob.response.Response Activate a single subscriber. .. py:function:: deactivate_subscriber(self: onegov.election_day.models.Subscriber, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmptyForm) -> onegov.core.types.RenderData | webob.response.Response Deactivate a single subscriber.