Jorge Godoy wrote: > > The second is session support. The URI's get long and complex, so if > > sessions are in use, only the change information has to be passed in > > the URI and everything else (like the data query params) can be stored > > in a session. I've currently got it as an option in the decorator > > params. @paginate(..., use_session=True). One thing I'm not sure > > about yet is how to keep session data for the DataGrid widget from > > overwriting another paginating DataGrid instance's session data. Right > > now I'm using the id (id(func)) of the func passed into the decorator's > > "decorated" function. > > Hmmm... This isn't nice either. I can open two tabs on the same grid to work > with it -- e.g. making comparisons -- and it would probably be a problem. >
Yea, you're right. Multiple windows or tabs of the same browser use the same session. > > Third. All field sorting. Instead of only sorting by one field, each > > sorting selection will build on the last. > > What do you mean? Sorting by multiple fields? Or clicking a column to sort > data? And what happens with data on screen: will it all change or just the > current set being viewed? (I mean, if I am seeing records 1-10 sorted by > firstname and somehow when sorting by lastname I get 14-5, will it show me > 14-5 or will it sort 1-10 using the selected column?) It works like the current implementation, but remembers previous sorts. So if I sort by age, then again by name, the data will be sorted by age then name. The current implementation sorts all data and goes to page one, which seems like reasonable behaviour to me. So from your example, it would show records 1-10. It's a minor change. Do you find it would be better to sort only the currently viewed set? Maybe both would be good. Randall --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

