Example #1
0
    def _getRedirectOnSuccessfulTake(self, request, params, survey, record):
        """Returns a path to which the user should be redirected after successfully
    taking a OrgAppSurvey.
    """

        new_params = params['take_params']
        new_params['id'] = str(record.key().id_or_name())

        return requests.replaceSuffix(request.path, None, params=new_params)
Example #2
0
  def _getRedirectOnSuccessfulTake(self, request, params, survey, record):
    """Returns a path to which the user should be redirected after successfully
    taking a OrgAppSurvey.
    """

    new_params = params['take_params']
    new_params['id'] = str(record.key().id_or_name())

    return requests.replaceSuffix(request.path, None, params=new_params)
Example #3
0
  def _getRedirectOnSuccessfulTake(self, request, params, survey, record):
    """Returns a path to which the user should be redirected after successfully
    taking a Survey.

    Args:
      request: current HTTPRequest
      params: the params of the View
      survey: Survey entity that was succesfully taken
      record: SurveyRecord entity that has been stored/updated
    """

    return requests.replaceSuffix(request.path, None,
        params=params['take_params'])
Example #4
0
    def _getRedirectOnSuccessfulTake(self, request, params, survey, record):
        """Returns a path to which the user should be redirected after successfully
    taking a Survey.

    Args:
      request: current HTTPRequest
      params: the params of the View
      survey: Survey entity that was succesfully taken
      record: SurveyRecord entity that has been stored/updated
    """

        return requests.replaceSuffix(request.path,
                                      None,
                                      params=params['take_params'])