Radu Voicilas
820dfb0495
Making the code more PEP8 compliant
2012-10-09 00:42:49 +03:00
Kenneth Reitz
ab57c076e3
Merge pull request #811 from lucian1900/develop
...
Remove exception eating from dispatch_hook.
2012-08-25 08:06:56 -07:00
Locker537
42d0a2169e
Whitespace fixes following PEP8.
2012-08-16 17:38:35 -04:00
Lucian Branescu Mihaila
57b4d39749
Remove exception eating from dispatch_hook.
2012-08-16 17:49:00 +02:00
Michael Komitee
662c3edacc
Allowing hooks to return responses that indicate errors
...
Since response objects for failures (4xx/5xx responses) evaluate to False
in a boolean context, any hook which returns such a failure response will
evaluate to False.
The way hooks were setup, any failure response resulting from a hook would
be ignored, and the initial response before it got processed by the hook
would be substituted in its place. This commit changes that logic to test
for None so that hooks that return failures can do so.
2012-06-01 16:05:22 -04:00
Kenneth Reitz
8ac6b266c9
pre-send hook
...
#516
2012-05-02 19:09:18 -04:00
Kenneth Reitz
e9be7c1a58
make list of HOOKS available
2012-01-21 07:07:18 -05:00
Johannes Gorset
7647e52943
Facilitate for multiple hooks
2012-01-21 12:14:55 +01:00
Lucian Ursu
86eba21b8a
Printing the entire traceback, instead of just a warning, when an exception is encountered
2012-01-10 12:10:58 +02:00
travis
055f7c1eb6
Some Doc and doctoring fixes by the Speling Poleece.
2011-10-19 10:00:13 -05:00
Kenneth Reitz
855c273707
whitespace
2011-08-17 00:40:37 -04:00
Kenneth Reitz
2a0eff9c71
docstrings
2011-08-17 00:33:21 -04:00
Kenneth Reitz
3e8a14e133
pre_request hook
2011-08-17 00:28:03 -04:00
Kenneth Reitz
5ba43d0fe5
hook plans
2011-08-17 00:16:57 -04:00
Kenneth Reitz
d0cb56932c
new hooks system
...
#118
2011-08-16 23:57:44 -04:00