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: https://github.com/hirokiky/django/commit/e3399495dca9a727568626f64e2fa276c2857da9 Description of this implementation ----------------------------------------------- View.dispatch_config takes a dictonary. Keys of dispatch_config are HTTP method name as target. Values are `predicate` dictionary. Key of `predicate` is method name which you want to call to. It's `receiver`. And the value of `predicate` is `predicate function`. When the function returns True, dispatch method calls `reciver`(target method). Since my English is not good, plead watch this Gist (for usage). https://gist.github.com/4433362 Solution I proposed may be not adequate. but I want dispatch method to be more flexible. Thank you. -------------------------- 清原弘貴 (Hiroki KIYOHARA) mail: [email protected] http://hirokiky.org/ @hirokiky -- You received this message because you are subscribed to the Google Groups "Django developers" 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-developers?hl=en.
