fietsboek.views.upload module

Upload functionality.

fietsboek.views.upload.cancel_upload(request)

Cancels the upload and clears the temporary data.

Parameters:

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

Returns:

The HTTP response.

Return type:

pyramid.response.Response

fietsboek.views.upload.do_finish_upload(request)

Endpoint for the “finishing upload” form.

Parameters:

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

Returns:

The HTTP response.

Return type:

pyramid.response.Response

fietsboek.views.upload.do_upload(request)

Endpoint to store the uploaded file.

This does not yet create a track, it simply stores the track as a Upload and redirects the user to “finish” the upload by providing the missing metadata.

Parameters:

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

Returns:

The HTTP response.

Return type:

pyramid.response.Response

fietsboek.views.upload.finish_upload(request)

Renders the form that allows the user to finish the upload.

Parameters:

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

Returns:

The HTTP response.

Return type:

pyramid.response.Response

fietsboek.views.upload.preview(request)

Allows a preview of the uploaded track by returning the GPX data of a Upload

Parameters:

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

Returns:

The HTTP response.

Return type:

pyramid.response.Response

fietsboek.views.upload.show_upload(request)

Renders the main upload form.

Parameters:

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

Returns:

The HTTP response.

Return type:

pyramid.response.Response