-
Recent Posts
Archives
Categories
Tags
adminer alter table andromeda apgdiff autodoc bottle cherrypy concurrency control constraints create table database tools dbdeploy diva django emacs flask git jinja liquibase mako pagila pesto pgfoundry php post facto postgresql psycopg pyramid python pyyaml sqlalchemy test driven development testing tox ttm twisted unittest user interfaces version control versioning web.py web2py webob werkzeug windowsBlogroll
Meta
Monthly Archives: August 2011
Dueling Frameworks
Cue the music … In this corner, the time-tested CherryPy, standing at version 3.2, six years old, enabled for Python 3, sporting an HTTP 1.1-compliant WSGI webserver, support for other WSGI servers or adapters, a plugin mechanism, built-in tools and … Continue reading
Audit Trails
Back in February, I defined the film table version 0.1 with just three columns: CREATE TABLE film ( id INTEGER NOT NULL PRIMARY KEY, title VARCHAR(32) NOT NULL, release_year INTEGER NOT NULL CHECK (release_year >= 1888) ); It was unclear … Continue reading
Posted in PostgreSQL, Python, User interfaces, Version control
Tagged pagila, postgresql, python, user interfaces, version control
2 Comments
A Funny Thing Happened on the Way to the Webserver
Some years ago, I was looking for forum software, preferably written in Python, so I found Pocoo’s original bulletin board project. Since then, I’ve kept an eye on the Pocoo team, experimenting early on with Werkzeug, and using Pygments (indirectly) … Continue reading
Posted in Python, User interfaces
Tagged flask, jinja, mako, python, template languages, user interfaces
11 Comments
A More Robust Database Interface
The PostgreSQL server, like other client-server DBMSs, is complex. Many things can go awry. Here is a sampling of possible problems, as reported by psycopg: psycopg2.OperationalError: FATAL: database “None” does not exist psycopg2.OperationalError: could not connect to server: No such … Continue reading
Posted in PostgreSQL, Python, User interfaces
Tagged postgresql, psycopg, python, user interfaces
5 Comments
Templating for Web Database Interfaces
If you count the number of lines in the HTML files of the (corrected) v0.2 of the minimalist WSGI database interface I presented earlier, you’ll find 228 non-blank lines. However, there are only 91 unique lines. In other words, there … Continue reading
Posted in Python, User interfaces
Tagged dry principle, html forms, html input elements, mako, python, user interfaces
4 Comments
Where to CHECK your premises
“Contradictions do not exist. Whenever you think that you are facing a contradiction, check your premises. You will find that one of them is wrong.” — Ayn Rand 1 In both the command line and WSGI database user interfaces that … Continue reading
Posted in PostgreSQL, Python, User interfaces
Tagged constraints, postgresql, python, user interfaces, validations
6 Comments