Re: [SQLObject] Using SQLObjects as Abstract Classes
SQLObject is a Python ORM.
Brought to you by:
ianbicking,
phd
From: Ian B. <ia...@co...> - 2003-07-25 01:56:49
|
On Thu, 2003-07-24 at 14:42, Brad Bollenbach wrote: > Hi all, > > How can I use an SQLObject-derived class as an abstract base class? Hmm... I'm not exactly clear what an abstract base class is. Is there a particular problem you are trying to solve? The problem with two classes for one table is that it's very ambiguous. Generally a row is an instance, and an instance is a row, very one-to-one. That gets very mucky with multiple classes for one table. I feel like this should be possible to handle in one class, even if it may not feel as object-oriented (but it can probably be just as polymorphic, which is the better half of OO, even if it doesn't have a "proper" class hierarchy, which isn't very important). Ian |