Archive for November, 2006

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)
# [...]

Lyrics

Friday, November 10th, 2006

So, for you aspiring lyricists out there, here is a bit of wisdom from my wealth of knowledge on the subject*: Starting a song with the phrase,
Wow, two-thousand two!
probably worked well in 2002, but by 2006 (and probably earlier) the “wow” factor has worn off for most of us…
cw
* replace with “someone who [...]

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 [...]