Ian Bicking: the old part of his blog

Re: More on Python Metaprogramming

I'd use syntax like this:

class Project(ActiveRecord):
    _db_attributes = dict(
        project_manager = meta.ForeignKey(ProjectManager),
        milestones = meta.OneToManyField(Milestone),
        categories = meta.ManyToManyField(Category))

This makes the job of the metaclass slightly easier (and quite a bit more efficient) and satisfies EIBTI.

Comment on More on Python Metaprogramming
by Christian Tanzer

Comments:

>EIBTI Nice DETLA. ;)

# Chris