organized and uses a
> lot of good pythonic idioms if you're new to the language.
>
> Jon.
>
> On Dec 1, 6:49 am, martyn <[EMAIL PROTECTED]> wrote:
>
> > David,
>
> > +1 for decorator.
> > That let you use it or not in each view.
>
> > On Dec 1
Thanks , David Zhou , I will find some information for decorator
And also , I will surf for middleware .
Thank you very much , Malcolm.
On Dec 1, 3:55 pm, "David Zhou" <[EMAIL PROTECTED]> wrote:
> On Mon, Dec 1, 2008 at 2:23 AM, David Shieh <[EMAIL PROTECTED]> wrote:
I have found a post in here :
http://davyd.livejournal.com/262859.html
this is the way this author resolves this problem.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Django users" group.
To post to this group,
test it , but if django won't initiate the
views.py as a class , this method will make no sense.
On Dec 1, 2:52 pm, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sun, 2008-11-30 at 22:46 -0800, David Shieh wrote:
> > yeah , I will consider about middleware , and I am also
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 Sh
at 21:48 -0800, David Shieh wrote:
> > Thanks , Malcolm ,
>
> > I think your solution can resolve my problem.But does it a bit
> > complex ?
> > In fact , what I really want is a view function that will be called by
> > every view function.
> > i.e. , if
and pass some parameters to
every views function .
Any suggestions ?
On Dec 1, 11:49 am, Malcolm Tredinnick <[EMAIL PROTECTED]>
wrote:
> On Sun, 2008-11-30 at 19:41 -0800, David Shieh wrote:
>
> [...]
>
> > I have searched for some information . I know that middleware can
I have used Django for several months , and it really attacts me . I
love it.
But when I use it more , I found a problem troubles me , that is , I
can't find a way to make a function be called by every view function
automatically .
I used CakePHP , it have a function named beforeFilter() . It
8 matches
Mail list logo