OpenID + DB Authentication in Pylons is easy with RPX

June 2nd, 2009 § 2

This post will walk you through the steps I took to enable OpenID login in a project I am working on. I wanted to enable OpenID alongside existing user data stored in MySQL database.

 

Login Screen for Pylons

This tutorial actually covers more than just the subject of OpenID; it shows how to create your own custom authentication and authorization in Pylons, and how to create your own authorization decorators to protect Pylons actions.

I will assume you already have Pylons, SQLAlchemy, Mako, and MySQL installed, and will start by creating a new Pylons project project for this tutorial.

» Read the rest of this entry «

Python CSV to Fixed Sized Text Tables

December 5th, 2008 § 0

Here is a quick and simple Python class I hacked up to take comma separated values and reformat them to a fixed column text table. Supports multi-line rows, column width limits, and creates a header row automatically using the data from the first row of the CSV input.

» Read the rest of this entry «

Where Am I?

You are currently browsing entries tagged with Python at Tony Landis.