Spoke a bit to soon... looks like that cls argument is only available
in 0.5, and the type() mixin trick still complains about not having a
mapped_table specifed. SQLA 0.4.6 is unhappy with the snippet
below...
import sqlalchemy as sa
from sqlalchemy.ext.declarative import declarative_base
class _BaseORMMixin():
pass
_OrmBaseBase = declarative_base()
_ORM_BASE = type("_ORM_BASE", (_OrmBaseBase, _BaseORMMixin), {})
####
Even trying to add a bogus __tablename__ doesn't seem to work.
Dropping back to mixing the mixin with every class derived from the
declarative base restores functionality.
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---