Пример #1
0
    def post(self):
        request = self.validate_message(self.request.body, requests.WizardDesc)

        # Wizard will raise exceptions if there are any errors with the request
        yield wizard(request, self.request.language)
        # cache must be updated in order to set wizard_done = True
        yield serialize_node(self.request.language)
        GLApiCache.invalidate()

        self.set_status(201)  # Created
Пример #2
0
    def post(self):
        request = self.validate_message(self.request.body,
                                        requests.WizardDesc)

        # Wizard will raise exceptions if there are any errors with the request
        yield wizard(request, self.request.language)
        # cache must be updated in order to set wizard_done = True
        yield serialize_node(self.request.language)
        GLApiCache.invalidate()

        self.set_status(201)  # Created
Пример #3
0
    def post(self):
        request = self.validate_message(self.request.content.read(),
                                        requests.WizardDesc)

        # Wizard will raise exceptions if there are any errors with the request
        yield wizard(request, self.request.language)

        yield serialize_node(self.request.language)

        # Invalidation is performed at this stage only after the asserts within
        # wizard have ensured that the wizard can be executed.
        GLApiCache.invalidate()