pointsecio.decorators.produces

This module defines decorators to change the return type of a view function.

Module Contents

Classes

BaseSerializer

type mimetype

str

Produces

type mimetype

str

Attributes

logger

NoContent

pointsecio.decorators.produces.logger
pointsecio.decorators.produces.NoContent
class pointsecio.decorators.produces.BaseSerializer(mimetype='text/plain')

Bases: pointsecio.decorators.decorator.BaseDecorator

__repr__(self)
Return type

str

__call__(self, function)
Return type

types.FunctionType

class pointsecio.decorators.produces.Produces(mimetype='text/plain')

Bases: BaseSerializer

__call__(self, function)
Return type

types.FunctionType

__repr__(self)
Return type

str