AllVerbsMixin: call a method for all HTTP verbs #104

Merged
merged 1 commit into from Feb 28, 2014

Projects

None yet

3 participants

@prasanthn
Contributor

This refers to issue #97.

The dispatch method will extract the attribute specified by the class attribute "all_handler", the default value of which is "all". The dispatch method then calls this method, without checking what the HTTP verb is. If "all_handler" is not specified (technically if it evaluates to False) then ImproperlyConfigured exception is raised.

Tests are in tests/test_other_mixins.py::TestAllVerbsMixin.

I was able to run the tests using py2.7-d1.4, py2.7-d1.5, and py2.7-d1.6. I don't have the other two interpreters installed on my system. I will check them soon.

@prasanthn prasanthn AllVerbsMixin: call a method for all HTTP verbs
The dispatch method will extra the attribute specified by the
class attribute "all_handler", the default value of which is "all".
The dispatch method then calls this method, without checking what
the HTTP verb is. If "all_handler" is not specified (techincally
if it evaluates to False) then ImproperlyConfigured exception is
raised.

Tests are in tests/test_other_mixins.py::TestAllVerbsMixin.
c1fd3ce
@prasanthn prasanthn referenced this pull request Feb 14, 2014
Closed

AllVerbsMixin #97

@chrisjones-brack3t chrisjones-brack3t added this to the 1.4 milestone Feb 27, 2014
@kennethlove kennethlove merged commit 2c6e2dd into brack3t:master Feb 28, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment