yeah , I will consider about middleware , and I am also thinking about write a class that contains the functions I need , and other funcions just inherit it , will it work ?
On Dec 1, 2:41 pm, Malcolm Tredinnick <[EMAIL PROTECTED]> wrote: > On Sun, 2008-11-30 at 22:35 -0800, David Shieh wrote: > > Hi , Malcolm, > > > Now , I understand what you said.But using session means user must to > > call a certain to set the session. > > I was using session as an *example*. It's something that, based on > incoming request information, is run every time and can do some extra > processing. It's an example of how to abstract away that processing from > the view functions. > > > Maybe Django should learn from other frameworks to get a action system > > to handle this. > > You keep operating on the assumption that it doesn't exist, but that > seems to be because you're locked into it being a way to pass extra > parameters to a view. Django already has such a system. It's called > middleware. > > Malcolm --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Django users" 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/django-users?hl=en -~----------~----~----~----~------~----~------~--~---

