[sqlalchemy] AttributeError (_inserted_primary_key) when retrieving ids of 'bulk insert'

2011-06-07 Thread Felix Wolfsteller
.rowcount print r.inserted_primary_key() # Raises: #AttributeError: 'DefaultExecutionContext' object has no #attribute '_inserted_primary_key' # Initial trial with r.last_inserted_ids() #SADeprecationWarning: Use inserted_primary_key #Error - : 'DefaultExecutionContext' object

Re: [sqlalchemy] Unwanted set-like behaviour of M:N relation properties

2011-05-11 Thread Felix Wolfsteller
On Wednesday 11 May 2011 15:58:21 Michael Bayer wrote: > On May 11, 2011, at 9:18 AM, Felix Wolfsteller wrote: > > Hi, > > I am using sqlalchemy 0.6.3-3 with python 2.6.6 and sqlite 3.7.3 (all > > from debian squeeze packages). > > > > In an M:N relation i have e.g

[sqlalchemy] Unwanted set-like behaviour of M:N relation properties

2011-05-11 Thread Felix Wolfsteller
ay to approach settings like mine? Probably related pointer from "nickph" in #sqlalchemy on irc (freenode): (10:59:38) nickph:  http://hg.sqlalchemy.org/sqlalchemy/file/23be17cf5025/CHANGES (10:59:48) nickph:  "Duplicate items in a list-based collection will be maintained"..