Re: [sqlalchemy] Is there a way to create custom classes that inherit from sqlalchemy models in external library?

2016-07-21 Thread Angie Ellis
mike...@zzzcomputing.com> wrote: > I think it's OK to add __abstract__ to those mixins, in this case it seems > like the (pretty complicated) class graph is adding up to something that > causes declarative to see AbstractCar as mapped class thus a "car" table is > added. Adding __

Re: [sqlalchemy] Is there a way to create custom classes that inherit from sqlalchemy models in external library?

2016-06-27 Thread Angie Ellis
t;, line 754, in __get__ obj.__dict__[self.__name__] = result = self.fget(obj) File ".../env/lib/python2.7/site-packages/sqlalchemy/sql/selectable.py", line 553, in columns return self._columns.as_immutable() AttributeError: 'Table' object has no attribute '_columns' Is there a

Re: [sqlalchemy] Is there a way to create custom classes that inherit from sqlalchemy models in external library?

2016-06-22 Thread Angie Ellis
Mike, Thank you for the response! I do have control over the external library. I like your idea having both the abstract classes and concrete classes available in the library because I have use cases for both in my applications. However, I'm not quite sure how to configure the inheritance and