def execute(self, handler):
        try:
            return handler(self.request,
                           action=self.action,
                           object_id=self.object_id,)
        except http.BaseHttpResponse as response:
            return response
This allows wrapping calls to handler functions
dataset/ETHPy150Open funkybob/django-nap/nap/rest/publisher.py/BasePublisher.execute