Resty applications in QP, Part III
In order to complete the Songs application we should understand how QP's default traversal mechanism makes it easy to provide a navigable UI for our objects we want to expose to the web. (851 words) More …
In order to complete the Songs application we should understand how QP's default traversal mechanism makes it easy to provide a navigable UI for our objects we want to expose to the web. (851 words) More …
Exposing the QP application as a WSGI app is simple. Create a driver file (let's name it runwsgi.py) and place it in your Python path. Myself I prefer to put such files in my QP application's "site" directory. (351 words) More …
Inside (1184 words) More …
Eric Florenzano's deliberately minimalist WSGI application illustrating a bare metal WSGI application with RESTful behaviour has drawn out from other Python web application framework communities a number of useful comparisons: (1393 words) More …
Inside (1120 words) More …
In part six of Python Web Application Diary we looked at data persistence using Durus and wrote Sancho unit tests and a skeleton Pyblosxom migration tool. Today we'll extend the basic UI created in part five for our Entry object, and we'll create a base UI for the Journal object too. At that point we'll be able to wire our new JournalDirectory into SiteDirectory (also referenced in part five) - a QP application's "master controller" - which will allow us to start publishing previously created journal entries to the web. (1033 words) More …
In this installment of our web application diary we'll work more with the Durus object database by injecting some data into it; exploring the interactive interpreter (one of the cool features of Durus to be sure) and starting the basis for a conversion script to take weblog data in PyBlosxom format and insert it into our blog application database. (2447 words) More …
In part two we created file system hierarchies for both a library and our project application. Since we plan on reusing our journal objects and related UI, those components will live in our library and our application itself will import them. (1856 words) More …
Our object model so far is very simplistic; lets add a healthy dose of constraints to aid both in testing and also prevent unintended (mis)use down the road. (1182 words) More …
Today lets start writing code -- we'll begin by defining basic objects for managing weblog or journal entries, and then we'll move on to showing how QP and Durus make defining and publishing your Python objects as easy as, well, py. (904 words) More …
I presented in part one some of the choices I've made for my own system configuration as it pertains to file layouts and hierarchies. (440 words) More …
The script lives at: http://mikewatkins.ca/software/files/qp/mkqpapp.py (94 words) More …
I have a number of tutorial projects in various stages of completion, and I'm itching to put some of this stuff out there in the hope that its useful to someone. (1382 words) More …
abc ads afghanistan alberta anarchy back-stabbing bc bc-liberals beach broken-promises canada candidates cartoons cbc child-care climate consumption controversy cpc criminal cycling debian democracy design disaster django durus economics election electoral-systems emerson energy environment ep events family finance floor-crossing freebsd gaffes general globalization gpc guns hacks harper health history homelessness housing hst humour hypocrisy images incongruity inside-baseball inspiration items japan kensington kudos letters lies lpc markets media merger migration nature nau ndp news npa nuclear oad oil olympics oodb order outrage pcparty pcpc peakoil photography photos pmo policy political politics polls pollution population poverty press protest python qp quebec recession reform religion rest richmond right-wing scams scandal schools secrecy security seismic senate softwood sovereignty spam sports spp street sun tablet technical thinkpad topical trade travel tutorial us vancouver vancouver-kingsway vancouver-south video virus vision-vancouver vps vsb war waste web wildfire world wsgi x100