Never knowingly knowing narwhals

Category Archives: Python

New Metal Army: Overview

For the last year I’ve been working on a project in TurboGears. Well no I can basically say version 1.0 if New Metal Army is done. It’s been a long time (nearly a year) and it’s far from complete but what is there is basically feature complete and it makes a nice site. Here is [...]

FreeBSD 6.3 and Turbogears

I upgraded a test server to FreeBSD 6.3 (released a few days ago) and all was working well apart from my TurboGears app. I run a TurboGears instance behind mod_wsgi and it wouldn’t start. Here is the error I got in http_errors.log [Sat Jan 19 11:32:42 2008] [error] [client 207.155.93.149] mod_wsgi (pid=1292): Exception occurred within [...]

Python Style Plugins Made Easy

Sometimes you need to write code that loads python at runtime. Plugin architectures are a good example of this. Plugins allow extensibility but more importantly (for me at least) they enforce a strict API. Anyway, I’ve written this code a few times so I thought I’d modularize it. The specific bit of code I am [...]