Archive for the 'Python' Category

A sorting problem

Thursday, April 12th, 2007

Here’s the situation.
I have a list of known field names.

specific_order = ['id', 'age', 'zzyzx', 'bar', 'spam_eggs']

That list is in the order that I want the resulting data displayed in. The dataset is a simple dictionary where the items in the specific_order list are the keys.
However, in each dataset there is the possibility that derived [...]

PyCon!

Thursday, February 22nd, 2007

I’m off to PyCon 2007 in a few hours. This will be my first one, and I’m really looking forward to it.
UPDATE: My flight just canceled. Sounds like I’ll be leaving sooner than I thought now …
cw

My Projects Site

Wednesday, December 6th, 2006

I had to disable comments on my projects site because of comment SPAM. They won’t be renabled until I get some decent anti-spam measures in place. Really, the software that runs the projects site is in need of a serious rewrite. As I mentioned to someone who inquired about it being upgraded [...]

A Cool New Dejavu Feature

Saturday, November 18th, 2006

So I was working on something for Amor and came up against a limitation in Dejavu. I was working with a Unit setup similar to this:
import datetime
from dejavu import Unit, UnitProperty

class Event(Unit):
Name = UnitProperty(unicode)
Start = UnitProperty(datetime.datetime)
End = UnitProperty(datetime.datetime)
# [...]

Collection Implementation for CherryPy 2.2

Tuesday, November 7th, 2006

Inspired by wsgicollection, I cooked up a collection implementation for CherryPy 2.2.x. Here is the docstring for the base Collection class:

A class representing a collection of items.

Items can be created, updated, viewed, listed and deleted. Dispatches
based on HTTP method and URL [...]

New Version of BuffetMyghty

Friday, August 25th, 2006

I just released a new version of BuffetMyghty: 0.3
As I mentioned in a previous post, the main changes are improvements that were made in the Pylons fork of the plugin. All of the Myghty options are able to be passed to the plugin now, and fragments are supported.
Additionally, I wrote a very basic set [...]

Wired-Tired-Expired: Python Web Development

Tuesday, August 22nd, 2006

Anyone who reads Wired magazine and is following the new “the-chosen-one-python-web-framework” saga should find this little bit familiar. Here is my (tongue-in-cheek) take on the current state of Python web dev…

Wired: WWGD
Tired: WSGI
Expired: CGI

In case you missed it, WWGD == ‘What Would Guido Do?’

Buffet 1.0 - A flexible templating filter for CherryPy

Saturday, August 12th, 2006

I released Buffet 1.0 today. No huge changes from 0.9, but a couple decent accomplishments.
Unit Tests
One of my goals for releasing a 1.0 version was to have unit tests for Buffet. Well, they are in there now. If nothing else, I feel a lot better about the code now that it has [...]

Buffet in Subversion

Thursday, May 25th, 2006

I haven’t done much with Buffet lately, as it has been working fine for me. There have been a few people who have sent me patches for Buffet, so I figured I should get it in Subversion. Thanks to the artist formerly know as python-hosting.com, I’ve done that. I still need to [...]

Server Migration Details

Thursday, May 11th, 2006

If you are reading this, it means I successfully migrated dowski.com to my new server.
The whole server conversion wasn’t too painful. I got my new VPS (Virtual Private Server) from VPSLand last Friday. I only had a few OS choices, none of them being Slackware, so I went with Debian (my other choices [...]