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:

pyramid.response.Response

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:

pyramid.response.Response

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:

pyramid.response.Response

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:

pyramid.response.Response

fietsboek.views.user_data.do_force_logout(request)

Forces all sessions to be logged out.

Parameters:

request (Request) – The Pyramid request.

Return type:

Response

Returns:

The HTTP response.

fietsboek.views.user_data.do_toggle_favourite(request)

Toggles the favourite status for the given track.

Parameters:

request (Request) – The Pyramid request.

Return type:

dict

Returns:

The data to return to the client.

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:

pyramid.response.Response

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:

pyramid.response.Response