Simple HTML form for pydap server
Project description
This is a simple HTML response, building a form to download data in ASCII format. The response builds the HTML page and redirects the user to the ASCII response when a POST is done.
Even though pydap uses Cheetah for templating, I decided to use a templating engine called templess for this response. Templess is lightweight (~25k) and fun to work with, justifying the choice.
A nice thing about the response is that the redirection to the ASCII response and the error message when no variable is selected are both done by raising exceptions. These exceptions are not captured by the server, that allows them to be captured by the Paste#httpexceptions middleware.
If you use this response, don’t forget to edit the template file and add a link pointing to the HTML response when clicking a filename.
The latest version is available in a Subversion repository.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file dap.responses.html-0.1.tar.gz
.
File metadata
- Download URL: dap.responses.html-0.1.tar.gz
- Upload date:
- Size: 12.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1a233c0651e5dd414df24efcac191441ba37e5c8fa26c39bbf9357c2fc606c31 |
|
MD5 | 5461e708f2d8a4281f89016cd62b6e47 |
|
BLAKE2b-256 | 668a869783c9a5be30a771d8dbf09e3fbe987c0b40b9a419e97fbbbbcdedceb5 |
File details
Details for the file dap.responses.html-0.1-py2.4.egg
.
File metadata
- Download URL: dap.responses.html-0.1-py2.4.egg
- Upload date:
- Size: 29.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 122c28ff0b1038899a8c046be53c0f71ce3bda55e0594c7ceaaef6828ac8a2c8 |
|
MD5 | 7605fa34a78e30bf0a274d14f4a0f2fd |
|
BLAKE2b-256 | 39f788f3be0ae9d95dd0a62aec00bf4e3053d409d36f0d9ca12b38efac4906ae |