gazette.views.users
Functions
|
View the users. |
|
Create a new publisher or editor. |
|
Edit the role, name and email of a user. |
|
Delete a user. |
|
View all open browser sessions. |
|
Closes all open browser sessions. |
|
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.