when I do stuff like this on the Web (single and multi-page edits), I
build up a dict of 'changes'.  When rendering forms, I default to the
key in changes or fallback to the sqlalchemy object. when ready to
save, I copy over the changes to the object - if there are any changes
- and flush.

the nice thing about dealing with dicts, is that an empty dict means
no changes, and a full dict means there are changes.  it makes it way
easier to catch "you've changed nothing!" issues.

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to