Changes between Initial Version and Version 1 of Ticket #14512, comment 16


Ignore:
Timestamp:
Sep 15, 2011, 12:38:49 PM (13 years ago)
Author:
Preston Holmes

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14512, comment 16

    initial v1  
    33There was the desire to try to keep a simple unified approach to function-based and class-based views decoration
    44
    5 Accepting the assumption that you are only talking about decorating views - the following alternative approach was suggested by Jacob: https://gist.github.com/1219822
     5Accepting the assumption that you are only talking about decorating views - the following alternative approach was suggested by Jacob:
     6
     7https://gist.github.com/1219822
    68
    79This removes the need for the double call ()() syntax in Python < 2.6
     
    911There were some subsequent comments that this would perhaps better live outside contrib.auth as some sort of general view utility.
    1012
    11 https://gist.github.com/1219822
    12 
    1313Would be good to see brief pro/con consideration of these two approaches - keeping as accepted, but if this stalls, will need to unfortunately move to DDN, at which point I will try to summarize for list.
Back to Top