Randall Nortman schrieb:
> ... something that hooks into sqlalchemy to add the required columns
> to the data model and handle checking and updating them on updates,
> for example.
I wouldn't actually add columns for that, but instead keep a copy of the
original record and compare its values again before inserting. Plus the
app needs to know which attributes can/should not be compared and can be
simply overwritten ("date last edited", "edited by" etc.).
> This would need to then hook into the form generation and submittal
> process to pass around the required hidden values.
Yes, I can imagine TG providing support for passing these values and
comparing them (maybe a special validator).
> I'm looking more for a recipe describing where to put those
> hooks in, rather than code that I just plug in and everything works.
> (Which is not likely to be possible to do generically in a way that
> works for all apps.)
I've added this to http://trac.turbogears.org/ticket/2354 so it won't be
forgotten.
-- Christoph
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/turbogears?hl=en
-~----------~----~----~----~------~----~------~--~---