Add coding to python files

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Fix use of literal when we wanted a string

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Add missing dependencies

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Add _method support for form data

When a POST request shares the _method variable, we will use its value as the
request method rather than POST. This makes implementing RESTful interfaces
easier.

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Add the decamel utility function

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Add missing docstrings in util

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Fold away an unnecessary method

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Let Form classes use custom templates

We now look for a template with the same name as the class, but decameled and
render that instead of the old main template. If there is no such template we
default to the previous template, now called _default.html

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Remove unnecessary whitespace

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Calling a FormElement now renders it

The previous action was to validate, but this was completely unused. Using call
to draw is much more likely to prove convenient.

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Remove fields element from form class

With a little wiggling, we can now access fields by their member name, so
form.email is how we access the email field. The only other purpose (real
purpose) of the fields element in the Form class was to specify the order we
should draw the fields in. Custom templates means we can arrange our fields in
the template instead, at the cost of a little file bloat that's probably going
to prove a wash once we start skinning the site.

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>
Make template an explicit property of forms

I didn't like the magical way. Also, we remove the default template, which
wouldn't have worked as is and isn't a terribly useful concept anymore.

Signed-off-by: Casey Dahlin <casey.dahlin@gmail.com>