Re controller:Why can't you just sort of the modified_on date which will give you the correct order within a category?
Re view: as I said I'm not sure how you best do this. A .represent in the model would work. Ideally, one could specify "date format" or "category" in the view. On Oct 20, 11:29 am, "Steve Shepherd" <[EMAIL PROTECTED]> wrote: > oops got those seasons around the wrong way. > "Winter of 2007", "Fall of 2007", "Summer of 2007", "Spring of 2007", > "Winter of 2006" > > On Mon, Oct 20, 2008 at 11:28 PM, Steve Shepherd <[EMAIL PROTECTED]> wrote: > > 1. THE OUTPUT > > I have changed my thinking on the groupings. > > > If today was THU then WED would be "Yesterday", TUE would be "Tuesday", MON > > would be "Monday", SUN would be "Last Week". If monday was the start day of > > your config for a week. This is the very same behaviour as MS Outlook 2003 > > when you group by date. > > The only mod to the outlook behaviour (Microsoft do do some things ok ;-)) > > if when the dates get older they could be split into "First Half of 2007" > > "Second Half of 2007" OR "Winter of 2007", "Spring of 2007", "Summer of > > 2007", "Fall of 2007", "Winter of 2006" etc etc > > You would need to take into consideration hemisphere somewhere in the > > application settings as it differs. > > > When you're looking back at dates human nature is to group things into > > bigger sets that the memory can bounce other events off. > > > 2. THE CONTROLLER and VIEW > > The controller method must provide a way of sorting these records by this > > field. So it would neeed to be numeric or something > > The view method can produce the nice english phrase above > > (Internationalised of course) > > > I prefer convetion over configuration so the parameters should default to > > todays date from the client side and also should look for the T2 stamp > > modified_date field. If there is none then it should use the first date > > field it can find. > > > OH just thought also that there should be a "No Date" phrase as well. > > My thoughts are exactly along your lines of including this as a display > > method on a column in the model. This would be a default and could be > > overridden at the view level. > > > What da ya think? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "web2py Web Framework" 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/web2py?hl=en -~----------~----~----~----~------~----~------~--~---

