Re: [sqlalchemy] mapper error, and db object cannot be incremented

2011-06-14 Thread Michael Bayer
You're best starting with the declarative usage patterns described in the ORM tutorial at http://www.sqlalchemy.org/docs/orm/tutorial.html, starting with http://www.sqlalchemy.org/docs/orm/tutorial.html#creating-table-class-and-mapper-all-at-once-declaratively. I would declare the class + table

[sqlalchemy] mapper error, and db object cannot be incremented

2011-06-14 Thread Liju
I'm new to SQLAlchemy. I wrote a method that retrieves a record, update the object after incrementing it by 1, and return that record object to the caller (pyramid view). Following is the test function. I get following errors : 1) when I call this method multiple times, I get an error that say "Ar