org.views.editor

Implements the adding/editing/removing of pages.

Functions

get_form_class(→ type[onegov.form.Form])

handle_page_form(→ RenderData | Response)

handle_new_page(→ RenderData | Response)

handle_new_root_page(→ RenderData | Response)

handle_edit_page(→ RenderData | Response)

handle_move_page(→ RenderData | Response)

handle_change_page_url(→ RenderData | Response)

view_topics_sort(→ onegov.core.types.RenderData)

Module Contents

org.views.editor.get_form_class(editor: onegov.org.models.Editor, request: onegov.org.request.OrgRequest) type[onegov.form.Form][source]
org.views.editor.handle_page_form(self: onegov.org.models.Editor, request: onegov.org.request.OrgRequest, form: onegov.form.Form, layout: onegov.org.layout.EditorLayout | onegov.org.layout.PageLayout | None = None) RenderData | Response[source]
org.views.editor.handle_new_page(self: onegov.org.models.Editor, request: onegov.org.request.OrgRequest, form: onegov.form.Form, src: object | None = None, layout: onegov.org.layout.EditorLayout | onegov.org.layout.PageLayout | None = None) RenderData | Response[source]
org.views.editor.handle_new_root_page(self: onegov.org.models.Editor, request: onegov.org.request.OrgRequest, form: onegov.form.Form, layout: onegov.org.layout.EditorLayout | onegov.org.layout.PageLayout | None = None) RenderData | Response[source]
org.views.editor.handle_edit_page(self: onegov.org.models.Editor, request: onegov.org.request.OrgRequest, form: onegov.form.Form, layout: onegov.org.layout.EditorLayout | onegov.org.layout.PageLayout | None = None) RenderData | Response[source]
org.views.editor.handle_move_page(self: onegov.org.models.Editor, request: onegov.org.request.OrgRequest, form: onegov.form.Form, layout: onegov.org.layout.EditorLayout | onegov.org.layout.PageLayout | None = None) RenderData | Response[source]
org.views.editor.handle_change_page_url(self: onegov.org.models.Editor, request: onegov.org.request.OrgRequest, form: onegov.form.Form, layout: onegov.org.layout.EditorLayout | onegov.org.layout.PageLayout | None = None) RenderData | Response[source]
org.views.editor.view_topics_sort(self: onegov.org.models.Editor, request: onegov.org.request.OrgRequest, layout: onegov.org.layout.EditorLayout | None = None) onegov.core.types.RenderData[source]