class Handler(object): # pragma: no cover def __init__(self, request): self.request = request action(renderer='json') def one(self): return 'OK' action(renderer='json') def two(self): return 'OK'
def _makeOne(self, **kw): from pyramid_handlers import action return action(**kw)