Skip to content

Instantly share code, notes, and snippets.

@pomack
Created April 30, 2012 02:06
Show Gist options
  • Save pomack/2554899 to your computer and use it in GitHub Desktop.
Save pomack/2554899 to your computer and use it in GitHub Desktop.
decorators usage example
from phoenix.views.api.communication.template.standard import standard_view
__all__ = ('list_view',)
@json_login_required(allowed_methods=('GET', 'HEAD'))
def list_view(request, section='id', id=None):
return standard_view(request, section=section, id=id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment