Commit beee7ceb authored by Jérome Perrin's avatar Jérome Perrin

TimerService: make TimerResponse support redirect()

This allows executing a script doing REQUEST.RESPONSE.redirect() without
error.

Before this patch it's an AttributeError similar to:

    ------
    2022-04-12 03:52:49,083 WARNING ActivityTool Could not call method ...
    Traceback (most recent call last):
      ...
      File "Script (Python)", line 34, in Base_redirect
        return request.RESPONSE.redirect(redirect_url, status=status_code)
    AttributeError: TimerResponse instance has no attribute 'redirect'
parent 3454c143
......@@ -125,6 +125,9 @@ class TimerResponse(BaseResponse):
def _finish(self):
pass
def redirect(self, *args, **kw):
pass
def unauthorized(self):
pass
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment