Re: [sqlalchemy] could not assemble any primary key columns for mapped table '...'

2010-05-21 Thread Yang Zhang
On Thu, May 20, 2010 at 8:09 PM, Michael Bayer mike...@zzzcomputing.com wrote: On May 20, 2010, at 5:51 PM, Yang Zhang wrote: How do I create an ORM type with no primary key columns? For some reason I'm getting:  sqlalchemy.exc.ArgumentError: Mapper Mapper|ActorActivity|actor_activities

Re: [sqlalchemy] could not assemble any primary key columns for mapped table '...'

2010-05-21 Thread Michael Bayer
On May 21, 2010, at 2:11 AM, Yang Zhang wrote: It would be nice if this restriction could be lifted if explicitly requested somehow (__use_pk__ = False, and have those operations raise run-time exceptions if attempted). (As for why I'm using the ORM, it's basically because it affords many

Re: [sqlalchemy] could not assemble any primary key columns for mapped table '...'

2010-05-21 Thread Michael Bayer
On May 21, 2010, at 9:12 AM, Michael Bayer wrote: On May 21, 2010, at 2:11 AM, Yang Zhang wrote: It would be nice if this restriction could be lifted if explicitly requested somehow (__use_pk__ = False, and have those operations raise run-time exceptions if attempted). (As for why I'm

Re: [sqlalchemy] could not assemble any primary key columns for mapped table '...'

2010-05-21 Thread Michael Bayer
On May 21, 2010, at 9:21 AM, Michael Bayer wrote: On May 21, 2010, at 9:12 AM, Michael Bayer wrote: On May 21, 2010, at 2:11 AM, Yang Zhang wrote: It would be nice if this restriction could be lifted if explicitly requested somehow (__use_pk__ = False, and have those operations

[sqlalchemy] could not assemble any primary key columns for mapped table '...'

2010-05-20 Thread Yang Zhang
How do I create an ORM type with no primary key columns? For some reason I'm getting: sqlalchemy.exc.ArgumentError: Mapper Mapper|ActorActivity|actor_activities could not assemble any primary key columns for mapped table 'actor_activities' for: class ActorActivity(Base): __tablename__ =

Re: [sqlalchemy] could not assemble any primary key columns for mapped table '...'

2010-05-20 Thread Michael Bayer
On May 20, 2010, at 5:51 PM, Yang Zhang wrote: How do I create an ORM type with no primary key columns? For some reason I'm getting: sqlalchemy.exc.ArgumentError: Mapper Mapper|ActorActivity|actor_activities could not assemble any primary key columns for mapped table 'actor_activities'