Re: Adding configuration to View to dispatch to any methods.

2013-01-02 Thread Hiroki Kiyohara
Thank you, Russ. I notice that It is exaggerated to change View.dispatch method. My proposal can be implemented by inheriting View. With reference to your opinion, I wrote this PredicateProcessView: https://gist.github.com/4440994 Inheritin this View, We can benefit as well as my proposal.

Re: Adding configuration to View to dispatch to any methods.

2013-01-02 Thread Russell Keith-Magee
On Thu, Jan 3, 2013 at 2:46 AM, Hiroki Kiyohara wrote: > Hi, Russ. > > Thanks for your reply.That makes sense.I notice that the configuration of > my suggestion is complex. > We need to know what the configuration to take the value.It is necessary > to re-consider the

Re: Adding configuration to View to dispatch to any methods.

2013-01-02 Thread Hiroki Kiyohara
Hi, Russ. Thanks for your reply.That makes sense.I notice that the configuration of my suggestion is complex. We need to know what the configuration to take the value.It is necessary to re-consider the implementation. Advantage of my approach - My

Re: Adding configuration to View to dispatch to any methods.

2013-01-02 Thread Russell Keith-Magee
Hi Hiroki, Thanks for the suggestion, but I'm afraid I don't see the benefit of doing this as configuration, rather than something in the dispatched method itself. Using your gist as an example -- why should this be something defined in a custom dispatching configuration format, rather than

Adding configuration to View to dispatch to any methods.

2013-01-02 Thread Hiroki Kiyohara
Hello, and Happy new year, everyone. Please listen to my proposal. I want django.views.generi.View.dispatch method to call methods in consideration of some config. For example, calling methods depending on the value of the request parameter. So I wrote this commit: