org.views.directory

Classes

DirectoryEntryWithNumber

A single entry of a directory.

Filter

Functions

get_directory_form_class(...)

get_directory_entry_form_class(...)

get_submission_form_class(...)

get_change_request_form_class(...)

view_directories(→ onegov.core.types.RenderData)

view_directory_redirect(→ webob.Response)

handle_new_directory(→ RenderData | Response)

handle_edit_directory(→ RenderData | Response)

delete_directory(→ None)

change_directory_url(→ RenderData | Response)

get_filters(→ list[Filter])

keyword_count(→ dict[str, dict[str, int]])

view_directory(→ onegov.core.types.RenderData)

view_geojson(→ onegov.core.types.JSON_ro)

handle_new_directory_entry(→ RenderData | Response)

handle_edit_directory_entry(→ RenderData | Response)

handle_submit_directory_entry(→ RenderData | Response)

handle_change_request(→ RenderData | Response)

view_directory_entry(→ onegov.core.types.RenderData)

delete_directory_entry(→ None)

view_export(→ RenderData | Response)

view_zip_file(→ webob.Response)

view_import(→ RenderData | Response)

execute_submission_action(→ None)

new_recipient(→ RenderData | Response)

view_directory_entry_update_recipients(...)

view_confirm(→ webob.Response)

view_unsubscribe(→ webob.Response)

view_unsubscribe_rfc8058(→ webob.Response)

Module Contents

class org.views.directory.DirectoryEntryWithNumber[source]

Bases: onegov.org.models.ExtendedDirectoryEntry

A single entry of a directory.

number: str | int | None[source]
org.views.directory.get_directory_form_class(model: object, request: onegov.org.request.OrgRequest) type[onegov.org.forms.DirectoryForm][source]
org.views.directory.get_directory_entry_form_class(model: onegov.org.models.ExtendedDirectoryEntry, request: onegov.org.request.OrgRequest) type[onegov.directory.models.directory.DirectoryEntryForm][source]
org.views.directory.get_submission_form_class(model: onegov.org.models.ExtendedDirectoryEntry, request: onegov.org.request.OrgRequest) type[onegov.org.models.directory.ExtendedDirectoryEntryForm][source]
org.views.directory.get_change_request_form_class(model: onegov.org.models.ExtendedDirectoryEntry, request: onegov.org.request.OrgRequest) type[onegov.org.models.directory.ExtendedDirectoryEntryForm][source]
org.views.directory.view_directories(self: onegov.directory.DirectoryCollection[Any], request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DirectoryCollectionLayout | None = None) onegov.core.types.RenderData[source]
org.views.directory.view_directory_redirect(self: onegov.directory.Directory, request: onegov.org.request.OrgRequest) webob.Response[source]
org.views.directory.handle_new_directory(self: onegov.directory.DirectoryCollection[Any], request: onegov.org.request.OrgRequest, form: onegov.org.forms.DirectoryForm, layout: onegov.org.layout.DirectoryCollectionLayout | None = None) RenderData | Response[source]
org.views.directory.handle_edit_directory(self: onegov.org.models.directory.ExtendedDirectoryEntryCollection, request: onegov.org.request.OrgRequest, form: onegov.org.forms.DirectoryForm, layout: onegov.org.layout.DirectoryCollectionLayout | None = None) RenderData | Response[source]
org.views.directory.delete_directory(self: onegov.org.models.directory.ExtendedDirectoryEntryCollection, request: onegov.org.request.OrgRequest) None[source]
org.views.directory.change_directory_url(self: onegov.directory.Directory, request: onegov.org.request.OrgRequest, form: onegov.org.forms.directory.DirectoryUrlForm, layout: onegov.org.layout.DefaultLayout | None = None) RenderData | Response[source]
class org.views.directory.Filter[source]

Bases: NamedTuple

title: str[source]
tags: Sequence[Link][source]
org.views.directory.get_filters(request: onegov.org.request.OrgRequest, self: onegov.org.models.directory.ExtendedDirectoryEntryCollection, keyword_counts: Mapping[str, Mapping[str, int]] | None = None, view_name: str = '') list[Filter][source]
org.views.directory.keyword_count(request: onegov.org.request.OrgRequest, collection: onegov.org.models.directory.ExtendedDirectoryEntryCollection) dict[str, dict[str, int]][source]
org.views.directory.view_directory(self: onegov.org.models.directory.ExtendedDirectoryEntryCollection, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DirectoryEntryCollectionLayout | None = None) onegov.core.types.RenderData[source]
org.views.directory.view_geojson(self: onegov.org.models.directory.ExtendedDirectoryEntryCollection, request: onegov.org.request.OrgRequest) onegov.core.types.JSON_ro[source]
org.views.directory.handle_new_directory_entry(self: onegov.org.models.directory.ExtendedDirectoryEntryCollection, request: onegov.org.request.OrgRequest, form: onegov.directory.models.directory.DirectoryEntryForm, layout: onegov.org.layout.DirectoryEntryCollectionLayout | None = None) RenderData | Response[source]
org.views.directory.handle_edit_directory_entry(self: onegov.directory.DirectoryEntry, request: onegov.org.request.OrgRequest, form: onegov.directory.models.directory.DirectoryEntryForm, layout: onegov.org.layout.DirectoryEntryLayout | None = None) RenderData | Response[source]
org.views.directory.handle_submit_directory_entry(self: onegov.org.models.directory.ExtendedDirectoryEntryCollection, request: onegov.org.request.OrgRequest, form: onegov.org.models.directory.ExtendedDirectoryEntryForm, layout: onegov.org.layout.DirectoryEntryCollectionLayout | None = None) RenderData | Response[source]
org.views.directory.handle_change_request(self: onegov.org.models.ExtendedDirectoryEntry, request: onegov.org.request.OrgRequest, form: onegov.org.models.directory.ExtendedDirectoryEntryForm, layout: onegov.org.layout.DirectoryEntryLayout | None = None) RenderData | Response[source]
org.views.directory.view_directory_entry(self: onegov.org.models.ExtendedDirectoryEntry, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DirectoryEntryLayout | None = None) onegov.core.types.RenderData[source]
org.views.directory.delete_directory_entry(self: onegov.directory.DirectoryEntry, request: onegov.org.request.OrgRequest) None[source]
org.views.directory.view_export(self: onegov.org.models.directory.ExtendedDirectoryEntryCollection, request: onegov.org.request.OrgRequest, form: onegov.org.forms.generic.ExportForm, layout: onegov.org.layout.DirectoryEntryCollectionLayout | None = None) RenderData | Response[source]
org.views.directory.view_zip_file(self: onegov.org.models.directory.ExtendedDirectoryEntryCollection, request: onegov.org.request.OrgRequest) webob.Response[source]
org.views.directory.view_import(self: onegov.org.models.directory.ExtendedDirectoryEntryCollection, request: onegov.org.request.OrgRequest, form: onegov.org.forms.DirectoryImportForm, layout: onegov.org.layout.DirectoryEntryCollectionLayout | None = None) RenderData | Response[source]
org.views.directory.execute_submission_action(self: onegov.org.models.DirectorySubmissionAction, request: onegov.org.request.OrgRequest) None[source]
org.views.directory.new_recipient(self: onegov.org.models.directory.ExtendedDirectoryEntryCollection, request: onegov.org.request.OrgRequest, form: onegov.org.forms.directory.DirectoryRecipientForm, layout: onegov.org.layout.DirectoryEntryCollectionLayout | None = None, mail_layout: onegov.org.layout.DefaultMailLayout | None = None) RenderData | Response[source]
org.views.directory.view_directory_entry_update_recipients(self: onegov.org.models.directory.ExtendedDirectoryEntryCollection, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.DirectoryEntryCollectionLayout | None = None) RenderData | Response[source]
org.views.directory.view_confirm(self: onegov.directory.models.directory.EntrySubscription, request: onegov.org.request.OrgRequest) webob.Response[source]
org.views.directory.view_unsubscribe(self: onegov.directory.models.directory.EntrySubscription, request: onegov.org.request.OrgRequest) webob.Response[source]
org.views.directory.view_unsubscribe_rfc8058(self: onegov.directory.models.directory.EntrySubscription, request: onegov.org.request.OrgRequest) webob.Response[source]