wte.views.user
– User functionality view handlers
The user
module handles all user functionality.
Routes are defined in init()
.
-
wte.views.user.
init
(config)[source]
Adds the user-specific routes (route name, URL pattern, handler):
users
– /users
– users()
users.action
– /users/action
– action()
user.view
– /users/{uid}
– view()
user.edit
– /users/{uid}/edit
– edit()
user.permissions
– /users/{uid}/permissions
–
permissions()
user.delete
– /users/{uid}/delete
–
delete()
Also initialises the pywebtools.pyramid.auth
authentication system
-
wte.views.user.
new_user_created
(request, user, token)[source]
Callback that sends an e-mail to the newly created user’s e-mail address
to give them a validation link.
Parameters: |
- request (
Request ) – The request to use for configuration settings
- user (
User ) – The user to send the e-mail to
- token (
TimeToken ) – The validation token
|
-
wte.views.user.
new_user_validated
(request, user, token)[source]
Callback that sends an e-mail to the newly created user’s e-mail address
to give them a password-reset link.
Parameters: |
- request (
Request ) – The request to use for configuration settings
- user (
User ) – The user to send the e-mail to
- token (
TimeToken ) – The validation token
|
-
wte.views.user.
password_reset
(request, user, token)[source]
Callback that sends an e-mail to the user’s e-mail address with a
link to reset their password.
Parameters: |
- request (
Request ) – The request to use for configuration settings
- user (
User ) – The user to send the e-mail to
|
-
wte.views.user.
password_reset_complete
(request, user)[source]
Callback that sends an e-mail to the user’s e-mail address letting them
know that their password has been reset.
Parameters: |
- request (
Request ) – The request to use for configuration settings
- user (
User ) – The user to send the e-mail to
|
-
wte.views.user.
password_reset_failed
(request)[source]
Callback that handles a failed password reset.