parameters: (self, survey_token, **kwargs)
docstring: Main route used by the host to 'manager' the session.
          - If the state of the session is 'ready'
            We render a template allowing the host to showcase the different options of the session
            and to actually start the session.
            If there are no questions, a "void content" is displayed instead to avoid displaying a
            blank survey.
          - If the state of the session is 'in_progress'
            We render a template allowing the host to show the question results, display the attendees
            leaderboard or go to the next question of the session.
docstring_summary: Main route used by the host to 'manager' the session.
          - If the state of the session is 'ready'
            We render a template allowing the host to showcase the different options of the session
            and to actually start the session.
            If there are no questions, a "void content" is displayed instead to avoid displaying a
            blank survey.
          - If the state of the session is 'in_progress'
            We render a template allowing the host to show the question results, display the attendees
            leaderboard or go to the next question of the session.
docstring_tokens: Main route used by the host to manager the session . - If the state of the session is ready We render a template allowing the host to showcase the different options of the session and to actually start the session . If there are no questions a void content is displayed instead to avoid displaying a blank survey . - If the state of the session is in_progress We render a template allowing the host to show the question results display the attendees leaderboard or go to the next question of the session .
function: def survey_session_manage(self, survey_token, **kwargs):
          """ Main route used by the host to 'manager' the session.
          - If the state of the session is 'ready'
            We render a template allowing the host to showcase the different options of the session
            and to actually start the session.
            If there are no questions, a "void content" is displayed instead to avoid displaying a
            blank survey.
          - If the state of the session is 'in_progress'
            We render a template allowing the host to show the question results, display the attendees
            leaderboard or go to the next question of the session. """
  
          survey = self._fetch_from_token(survey_token)
  
          if not survey or not survey.session_state:
              # no open session
              return NotFound()
  
          if survey.session_state == 'ready':
              if not survey.question_ids:
                  return request.render('survey.survey_void_content', {
                      'survey': survey,
                      'answer': request.env['survey.user_input'],
                  })
              return request.render('survey.user_input_session_open', {
                  'survey': survey
              })
          else:
              template_values = self._prepare_manage_session_values(survey)
              return request.render('survey.user_input_session_manage', template_values)
function_tokens: def survey_session_manage ( self , survey_token , * * kwargs ) : survey = self . _fetch_from_token ( survey_token ) if not survey or not survey . session_state : # no open session return NotFound ( ) if survey . session_state == 'ready' : if not survey . question_ids : return request . render ( 'survey.survey_void_content' , { 'survey' : survey , 'answer' : request . env [ 'survey.user_input' ] , } ) return request . render ( 'survey.user_input_session_open' , { 'survey' : survey } ) else : template_values = self . _prepare_manage_session_values ( survey ) return request . render ( 'survey.user_input_session_manage' , template_values )