fietsboek.views.user_data module¶
Views corresponding to the user profile.
- fietsboek.views.user_data.do_accept_friend(request)¶
Accepts a friend request.
This is the endpoint of a form on the profile overview.
- Parameters:
request (pyramid.request.Request) – The Pyramid request.
- Returns:
The HTTP response.
- Return type:
- fietsboek.views.user_data.do_add_friend(request)¶
Sends a friend request.
This is the endpoint of a form on the profile overview.
- Parameters:
request (pyramid.request.Request) – The Pyramid request.
- Returns:
The HTTP response.
- Return type:
- fietsboek.views.user_data.do_change_profile(request)¶
Endpoint to change the personal data.
- Parameters:
request (pyramid.request.Request) – The Pyramid request.
- Returns:
The HTTP response.
- Return type:
- fietsboek.views.user_data.do_delete_friend(request)¶
Deletes a friend.
This is the endpoint of a form on the profile overview.
- Parameters:
request (pyramid.request.Request) – The Pyramid request.
- Returns:
The HTTP response.
- Return type:
- fietsboek.views.user_data.do_force_logout(request)¶
Forces all sessions to be logged out.
- fietsboek.views.user_data.do_toggle_favourite(request)¶
Toggles the favourite status for the given track.
- fietsboek.views.user_data.json_friends(request)¶
Returns a JSON-ified list of the user’s friends.
- Parameters:
request (pyramid.request.Request) – The Pyramid request.
- Returns:
The HTTP response.
- Return type:
- fietsboek.views.user_data.user_data(request)¶
Provides the user’s data.
- Parameters:
request (pyramid.request.Request) – The Pyramid request.
- Returns:
The HTTP response.
- Return type: