From: Ian B. <ia...@co...> - 2003-09-17 21:10:29
|
On Wednesday, September 17, 2003, at 03:56 PM, Victor Ng wrote: > Shouldn't I be able to redefine the class? Sadly, no. > I'm not sure why an assertion is being thrown. > Because SQLObject handles classes by name (e.g. ForeignKey('TableName')) it is important that classes not be redefined and that names be unique. Re-fixing up classes would be quite difficult. In general redefining classes in Python can be problematic. In this specific instance I suppose it wouldn't cause a problem, but the assertion in there as a safeguard. Ian |