fietsboek.views.detail module

Track detail views.

fietsboek.views.detail.add_comment(request)

Endpoint to add a comment to a track.

Parameters:

request (pyramid.request.Request) – The Pyramid request.

Returns:

The HTTP response.

Return type:

pyramid.response.Response

fietsboek.views.detail.badge(request)

Returns the image data associated with a badge.

Parameters:

request (pyramid.request.Request) – The Pyramid request.

Returns:

The HTTP response.

Return type:

pyramid.response.Response

fietsboek.views.detail.delete_track(request)

Endpoint to delete the track.

Parameters:

request (pyramid.request.Request) – The Pyramid request.

Returns:

The HTTP response.

Return type:

pyramid.response.Response

fietsboek.views.detail.details(request)

Renders the detail page for a given track.

Parameters:

request (pyramid.request.Request) – The Pyramid request.

Returns:

The HTTP response.

Return type:

pyramid.response.Response

fietsboek.views.detail.gpx(request)

Returns the actual GPX data from the stored track.

Parameters:

request (pyramid.request.Request) – The Pyramid request.

Returns:

The HTTP response.

Return type:

pyramid.response.Response

fietsboek.views.detail.image(request)

Returns the image data for the requested image.

This ensures that the image is sent efficiently, by delegating to the WSGI file wrapper if possible.

Parameters:

request (pyramid.request.Request) – The Pyramid request.

Returns:

The HTTP response.

Return type:

pyramid.response.Response

fietsboek.views.detail.invalidate_share(request)

Endpoint to invalidate the share link.

Parameters:

request (pyramid.request.Request) – The Pyramid request.

Returns:

The HTTP response.

Return type:

pyramid.response.Response