gazette.views.users

Functions

view_users(→ onegov.core.types.RenderData)

View the users.

create_user(→ RenderData | BaseResponse)

Create a new publisher or editor.

edit_user(→ RenderData | BaseResponse)

Edit the role, name and email of a user.

delete_user(→ RenderData | BaseResponse)

Delete a user.

view_user_sessions(→ onegov.core.types.RenderData)

View all open browser sessions.

clear_user_sessions(→ RenderData | BaseResponse)

Closes all open browser sessions.

export_users(→ RenderData | Response)

Export all users as XLSX. The exported file can be re-imported

Module Contents

gazette.views.users.view_users(self: onegov.user.UserCollection, request: onegov.gazette.request.GazetteRequest) onegov.core.types.RenderData[source]

View the users.

Publishers can see editors, admins can see editors and publishers. Admins are never shown.

gazette.views.users.create_user(self: onegov.user.UserCollection, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.UserForm) RenderData | BaseResponse[source]

Create a new publisher or editor.

This view is visible for admins and publishers.

gazette.views.users.edit_user(self: onegov.user.User, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.UserForm) RenderData | BaseResponse[source]

Edit the role, name and email of a user.

Publishers may only edit members. Admins can not be edited.

gazette.views.users.delete_user(self: onegov.user.User, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.EmptyForm) RenderData | BaseResponse[source]

Delete a user.

Publishers may only edit members. Admins can not be deleted.

gazette.views.users.view_user_sessions(self: onegov.user.UserCollection, request: onegov.gazette.request.GazetteRequest) onegov.core.types.RenderData[source]

View all open browser sessions.

This view is only visible by an admin.

gazette.views.users.clear_user_sessions(self: onegov.user.User, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.EmptyForm) RenderData | BaseResponse[source]

Closes all open browser sessions.

This view is only visible by an admin.

gazette.views.users.export_users(self: onegov.user.UserCollection, request: onegov.gazette.request.GazetteRequest, form: onegov.gazette.forms.user.ExportUsersForm) RenderData | Response[source]

Export all users as XLSX. The exported file can be re-imported using the import-editors command line command.