election_day.views.manage.data_sources ====================================== .. py:module:: election_day.views.manage.data_sources .. autoapi-nested-parse:: The manage subscription views. Functions --------- .. autoapisummary:: election_day.views.manage.data_sources.view_data_sources election_day.views.manage.data_sources.create_data_source election_day.views.manage.data_sources.manage_data_source election_day.views.manage.data_sources.generate_data_source_token election_day.views.manage.data_sources.delete_data_source election_day.views.manage.data_sources.view_data_source_items election_day.views.manage.data_sources.create_data_source_item election_day.views.manage.data_sources.edit_data_source_item election_day.views.manage.data_sources.delete_data_source_item Module Contents --------------- .. py:function:: view_data_sources(self: onegov.election_day.collections.DataSourceCollection, request: onegov.election_day.request.ElectionDayRequest) -> onegov.core.types.RenderData View all data sources as a list. .. py:function:: create_data_source(self: onegov.election_day.collections.DataSourceCollection, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.DataSourceForm) -> onegov.core.types.RenderData | webob.response.Response Create a new data source. .. py:function:: manage_data_source(self: onegov.election_day.models.DataSource, request: onegov.election_day.request.ElectionDayRequest) -> webob.response.Response Manage the data source. Redirect to the list of data source items. .. py:function:: generate_data_source_token(self: onegov.election_day.models.DataSource, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmptyForm) -> onegov.core.types.RenderData | webob.response.Response Regenerate a new token for the data source. .. py:function:: delete_data_source(self: onegov.election_day.models.DataSource, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmptyForm) -> onegov.core.types.RenderData | webob.response.Response Delete the data source item. .. py:function:: view_data_source_items(self: onegov.election_day.collections.DataSourceItemCollection, request: onegov.election_day.request.ElectionDayRequest) -> onegov.core.types.RenderData View all data source items as a list. .. py:function:: create_data_source_item(self: onegov.election_day.collections.DataSourceItemCollection, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.DataSourceItemForm) -> onegov.core.types.RenderData | webob.response.Response Create a new data source item. .. py:function:: edit_data_source_item(self: onegov.election_day.models.DataSourceItem, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.DataSourceItemForm) -> onegov.core.types.RenderData | webob.response.Response Edit a data source item. .. py:function:: delete_data_source_item(self: onegov.election_day.models.DataSourceItem, request: onegov.election_day.request.ElectionDayRequest, form: onegov.election_day.forms.EmptyForm) -> onegov.core.types.RenderData | webob.response.Response Delete the data source item.