Only register callable items in lists
authorIan Cordasco <graffatcolmingov@gmail.com>
Mon, 1 Oct 2012 17:09:02 +0000 (13:09 -0400)
committerIan Cordasco <graffatcolmingov@gmail.com>
Mon, 1 Oct 2012 18:05:27 +0000 (14:05 -0400)
commit77677eb71d41f20d657254b7d88c17337369e600
tree63f588b0a534a22b14b347e76ee991a2d0633b04
parent7c520ece69ade644d2e0c7a52e06ebaef8c5260f
Only register callable items in lists

Prior to this, you could sneak a list of anything to register_hook and it
would accept it. This will check if the items in the list are callable before
registering them. Also added a regression test to make sure if this gets
changed it will be noticed.
requests/models.py
tests/test_requests.py