Re: [SQLObject] Preventing Duplicate Class Definitions
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Brad B. <br...@bb...> - 2004-10-02 01:07:57
|
On Friday, October 1, 2004, at 08:29 PM, Ian Bicking wrote: > Brad Bollenbach wrote: >> Hi all, >> So I've written a little unit test to merge a small patch from Steve >> Alexander to prevent defining the same class twice. > > Doesn't this already happen? I think it raises an AssertionError. > Oh, wait, maybe it doesn't; I must have forgotten that part when I > moved the code into classregistry.py. Well, you are right, that > should raise an error. I can confirm that before I integrated Steve's code, the test failed because no exception was getting raised. Patch committed. -- Brad Bollenbach |