Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

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

This version


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dap.responses.html, version 0.1
Filename, size File type Python version Upload date Hashes
Filename, size dap.responses.html-0.1-py2.4.egg (29.6 kB) File type Egg Python version 2.4 Upload date Hashes View
Filename, size dap.responses.html-0.1.tar.gz (12.0 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page