Skip to content
This repository was archived by the owner on Dec 16, 2025. It is now read-only.
This repository was archived by the owner on Dec 16, 2025. It is now read-only.

Specific decorators #201

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
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions