[sqlalchemy] Bug? Cannot call super().__init__ in class which extends declarative_base

2012-03-08 Thread Adam Parkin
When augmenting the basehttp://docs.sqlalchemy.org/en/latest/orm/extensions/declarative.html?highlight=declarative_base#augmenting-the-baseyou create a class, and then tell declarative_base to inherit from the class you've created. Ex: class MyBase(object): def __init__(self): #

Re: [sqlalchemy] Bug? Cannot call super().__init__ in class which extends declarative_base

2012-03-08 Thread Michael Bayer
On Mar 8, 2012, at 1:15 PM, Adam Parkin wrote: When augmenting the base you create a class, and then tell declarative_base to inherit from the class you've created. Ex: class MyBase(object): def __init__(self): # code here Base = declarative_base(cls=MyBase) class