Skip to content

Specific decorators #201

@BnGx

Description

@BnGx

It would be better to implement method-specific decorators to give more flexibility of use as appropriate by transforming this definition:

class PersonList (ResourceDetail):
     decorators = (cached, login_required)

in the following and more customizable definition:

class PersonList (ResourceDetail):
     decorators = {
         'get': (cached,),
         'post': (login_required,),
     }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions