• Jérome Perrin's avatar
    TimerService: make TimerResponse support redirect() · b404b724
    Jérome Perrin authored
    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'
    b404b724
TimerServer.py 6.23 KB