openslides_backend/presenter/presenter.py
def handle_request(
        self, request: Request
    ) -> Tuple[PresenterResponse, Optional[str]]:
        """
        Takes payload and user id and handles this request by validating and
        parsing the presentations.
        """
        # Validate payload of request
        try:
            self.validate(request.json)
        except JsonSchemaException as exception:
            raise PresenterException(exception.message)

        # Parse presentations and creates response
        response, access_token = self.parse_presenters(request)
        self.logger.debug("Request was successful. Send response now.")
        return response, access_token

        Takes payload and user id and handles this request by validating and
        parsing the presentations.
        
Takes payload and user id and handles this request by validating and
parsing the presentations.
Takes payload and user id and handles this request by validating and parsing the presentations .
def handle_request(
        self, request: Request
    ) -> Tuple[PresenterResponse, Optional[str]]:
        try:
            self.validate(request.json)
        except JsonSchemaException as exception:
            raise PresenterException(exception.message)
        response, access_token = self.parse_presenters(request)
        self.logger.debug("Request was successful. Send response now.")
        return response, access_token
def handle_request ( self , request : Request ) -> Tuple [ PresenterResponse , Optional [ str ] ] : try : self . validate ( request . json ) except JsonSchemaException as exception : raise PresenterException ( exception . message ) response , access_token = self . parse_presenters ( request ) self . logger . debug ( "Request was successful. Send response now." ) return response , access_token
Takes payload and user id and handles this request by validating and
parsing the presentations.
Takes payload and user id and handles this request by validating and parsing the presentations .
"""
        Takes payload and user id and handles this request by validating and
        parsing the presentations.
        """ # Validate payload of request # Parse presentations and creates response
self
request
Request