[sqlalchemy] Unable to select on Table subclass

2011-02-22 Thread bool
I wrote a simple subclass of Table class MyTable(Table): def __init__(self, name, metadata, *args, **kwargs): super(MyTable, self).__init__(name, metadata, *args, **kwargs) def select(self,

Re: [sqlalchemy] Unable to select on Table subclass

2011-02-22 Thread Michael Bayer
Table is not meant for subclassing, so you would need to read the source code to understand these issues. The issue below cannot be reproduced: from sqlalchemy import * class MyTable(Table): def __init__(self, name, metadata, *args, **kwargs): super(MyTable, self).__init__(name,

Re: [sqlalchemy] Unable to select on Table subclass

2011-02-22 Thread Michael Bayer
On Feb 22, 2011, at 8:30 AM, bool wrote: select(t) where t is an object of MyTable is giving this error. What is the solution... also, I recommend upgrading to a modern release of SQLAlchemy. The above usage produces this error: sqlalchemy.exc.ArgumentError: columns argument to select()