Hi
I am designing a class that works like a display and edit list (for using
alongside soething like itemize in T2)

So her goes:

Its called SQLVIEW

I want to hook this to a table (that is developed in DAL) and the SQLVIEW
class automatically adds some methods and helpers.

But I have a question about where this should sit whether it is M C or V.

Here is the question:
If I am creating a method that will display a Date as (Today, Yesterday,
This Week, Last Week etc etc)
Should this be a view helper or should it be part of the model or
controller?
The raw data is the date on file and todays date (client side not server
side) to calculate what should be displayed.

My thinking is it should be a View helper but I may want to use this field
as a grouping or sort field this means moving it back to the controller.

Anyone's thoughts

PS. I am thinking of adding an updated stamp method called AUDIT which will
keep a list of users and dates that are modified on a record this way I can
do some easy displays of when things were last changed on a record.

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

Reply via email to