On Sep 19, 1:33 pm, Christoph Zwerschke <[email protected]> wrote:
> Randall Nortman schrieb:
>
> > The typical modern way of dealing with this on the web -- if you deal
> > with it at all -- is opportunistic locking, where before you save
> > changes you check to see if any updates were made since the data was
> > originally presented to the user.
>
> Since there is no standard way of saving objects in plain TG, you must
> do this manually - it's not so difficult.

I guess I was looking for something slightly beyond "plain TG".  Some
kind of set of tools that work together within TG to provide the sort
of thing I'm looking for, without me having to do a lot of cut and
paste -- something that hooks into sqlalchemy to add the required
columns to the data model and handle checking and updating them on
updates, for example.  This would need to then hook into the form
generation and submittal process to pass around the required hidden
values.  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.)

> Concerning Sprox, Catwalk2 or Rum, I don't know if they are doing this
> already, but if not they should do it.

I agree.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to