On 21/03/2011 19:29, farcat wrote:
Hi Chris,
The short answer is that I want to dynamically create classes/tables
Why?
and I want to implement multiple inheritance
That's fine, that's what mixins give you.
If you have more than one class with a __tablename__ in the class
hierarchy, then you'll get table inheritance, which may also be what you
want.
(simplified version: just
data and no overrides =>
What do you mean by "overrides"?
no diamond problem),
What do you mean by "diamond problem"? Python has a well defined MRO, if
that's what you're worried about...
so I need some extra
work like a extra tables for polymorphism.
What does polymorphism mean to you? SQLAlchemy handles most polymorphic
OR mapping quite gracefully...
I think it would be most
elegant to do this with metaclasses, but I am just experimenting until
now.
You come across as someone with a hammer desperately looking for nails
and frustrated when you find only screws ;-)
cheers,
Chris
--
Simplistix - Content Management, Batch Processing & Python Consulting
- http://www.simplistix.co.uk
--
You received this message because you are subscribed to the Google Groups
"sqlalchemy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sqlalchemy?hl=en.