cmcavoy/webpagemaker — pull request #1 by alfredo (2012-06-17 11:11:42+00:00)
Title: Updated the throttle_view decorator, to be expressed better.

The previous decorator usage syntax wasn't great:

new_view = throttle_view(view, methods=['POST', 'GET'])

I've updated the decorator, docstring and tests to reflect this:

https://github.com/alfredo/popcorn_gallery/commit/b80b5b705f18d831df1ba0541847c76f4e809a3e

The updated decorator now can be used as:

@throttle_view(methods=['POST'])
def view(request):
pass

Sorry I just realised about this while testing code on our previous discussion!