Hi all!

I'm looking for a programming pattern to deal with a "radio button" like behavior, thatis in a group of rows, all with same group_id, only one can have a flag column set as true. Without using table triggers that make all rows in the group lose the flag if the updating row carries it (or doing it in the application), is there any pattern with SQLAlchemy that I'm looking for here?

As a "by the way" to this question, I've noticed that the order of queries given before flush() is not preserved for the flush(). Any way to enforce the order?



Thanks!

--

.oO V Oo.

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

Reply via email to