[sqlalchemy] Re: Could not assemble any primary key columns for mapped table

2007-05-07 Thread ml
That's it, thanks! Michael Bayer napsal(a): On May 4, 2007, at 9:17 AM, ml wrote: Hi! I have a few tables with non-integer primary keys. Following raises an exception: meta = MetaData(name=somemeta) themes = table(themes, meta, Column(title, Unicode(30), primary_key=True), )

[sqlalchemy] Re: Could not assemble any primary key columns for mapped table

2007-05-04 Thread Michael Bayer
On May 4, 2007, at 9:17 AM, ml wrote: Hi! I have a few tables with non-integer primary keys. Following raises an exception: meta = MetaData(name=somemeta) themes = table(themes, meta, Column(title, Unicode(30), primary_key=True), ) class Theme(object): pass mapper(Theme,

[sqlalchemy] Re: Could not assemble any primary key columns for mapped table error for views

2007-04-23 Thread Michael Bayer
On Apr 23, 2007, at 1:23 PM, Andreas Jung wrote: I have a view arbeitsmittelhierarchy_arbeitsmittle_view which is defined as a left join of two tables. Trying to generate a mapper from the autoload view as Table() fails: File build/bdist.linux-i686/egg/sqlalchemy/orm/session.py, line