Lets take a look at our existing site and what we can do to clean it up and add some badly needed functionality, however that is beyond the scope of my series. So I’m going to leave some hints for the remaining functionality to get you started. Refactoring Ideas Replace default authkit login with...
Last post we left off with very basic database access, and testing story completed. Now we're going to look at basic Authorization and Authentication with AuthKit. NOTE: most of this post is just an aggregation of a couple of chapters in the Pylons Book since this setup is a good base starting point...
UPDATE: was an error caught by Govind (who is turning out to be my unofficial proofreader). I've made a correction in the thread mapping for "dateadded" property in the previous article. If this you are caught up with and error indicating there is no dateadded property on thread make sure...
We last left off with Views with Mako , now Pylons does not enforce on you an ORM at all, so you can use hand crafted SQL if you prefer. However, since I’ve done enough of that for a career or two we’re going to use my Python ORM of choice and the preferred one for Pylons SQLAlchemy. Where...
This is a huge post and I should have split this into several smaller ones so please bear with me while I get my series format tweaked. We last left off with Controllers, Views and Testing with a basic test, basic view and basic controller. Now with our basic scaffold built we can focus on making our...
We last left off with Getting Started and having created our “pylonsforum” project and generated our first controller. Source for home.py import logging from pylons import request, response, session, tmpl_context as c from pylons.controllers.util import abort, redirect_to from pylonsforum...
This article assumes you have Python 2.6 and Setuptools already installed on your machine and that you’re install SQL Alchemy 0.54 and Pylons 0.97 Overview Pylons is a component based MVC web framework. It, like a lot of more recent MVC frameworks, is borrowing some ideas and concepts from rails...