Created
          April 30, 2012 02:06 
        
      - 
      
- 
        Save pomack/2554899 to your computer and use it in GitHub Desktop. 
    decorators usage example
  
        
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | 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