Demo of the problem:
CREATE TABLE books (
id serial PRIMARY KEY,
title text NOT NULL,
published_year char(4) NOT NULL,
authors text NOT NULL
);
from sqlalchemy import create_engine
engine = create_engine('postgres', {'database': 'pyweboff', 'user': 'spyce', 'password': 'spyce'})
db = DbSoup(engine)
db.books(title='foo', published_year='1111', authors='asdf')
from sqlalchemy import objectstore
print objectstore.get_session().uow.new # there it is!
db.commit()
# but no new rows in books!
--
Jonathan Ellis
http://spyced.blogspot.com
soup.py
Description: application/httpd-python