On Sun, Apr 23, 2006 at 12:56:28PM -0500, Ian Bicking wrote:
> >the attached code performs some error checking when instantiated an
> >InheritableSQLObject subclass. WHen first expermenting with
> >iheritableObjects I found that missing a required keyword argument
> >could result in the database being
> >partially populated. I believe the attached code addresses this.
> >I have tried to implement the necesary tests however a full
> >verification would require direct peeking into the database (I wasn't
> >certain how to do this).
> >Also I must confess that this is the first time i have ever submited
> >code to a project. the attached file is a diff generated with svn diff
> >(I hope it is acceptable).
Applied in the rev. 1746 to the trunk. Thank you! I tested the patch a
bit; the biggest change is that I replaced KeyError with TypeError -
keyword arguments are not keys, and TypeError is what is logical and what
Oleg Broytmann http://phd.pp.ru/ phd@...
Programmers don't die, they just GOSUB without RETURN.