Re: [sqlalchemy] mappers and non_primary arg

2010-07-06 Thread Harry Percival
Hey, a workaround i've used is is to manually set primary key to being a composite of all columns if the table has no actual primary key. however, this will mean that sqlalch ignores any duplicate rows, which you may not want. hp. On Thu, Jul 1, 2010 at 7:41 PM, sandro dentella san...@e-den.it

[sqlalchemy] mappers and non_primary arg

2010-07-01 Thread sandro dentella
Hi, I'm trying to use non_primary arg of function 'mapper'. Currently I have a GUI widget to browse/edit tables that is based on introspection of the mapper. My goal would be to reuse all the machinary of table browsing even when browsing tables tat where built w/o primary key. I'm ready to