On Friday 19 December 2008 16:58:12 Michael Bayer wrote:
> oops, do it like this:
>
> class BaseType(DeclarativeMeta):
>     def __init__(newcls, classname, bases, dict_):
>         dict_['notes'] = saschema.Column(satypes.String)
>         DeclarativeMeta.__init__(newcls, classname, bases, dict_)
>
>
> clearly we'll have to figure out a more user friendly pattern for
> this use case.
can't u use multiple inheritance, in the case, as mixin/s?
i use it in dbcook this way, using the bases[1:] only as 
declaration-bringers.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To post to this group, send email to sqlalchemy@googlegroups.com
To unsubscribe from this group, send email to 
sqlalchemy+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/sqlalchemy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to