Esempio n. 1
0
    def __call__(self, request):
        _init_flavour(request)

        if settings.FLAVOURS_GET_PARAMETER in request.GET:
            flavour = request.GET[settings.FLAVOURS_GET_PARAMETER]
            if flavour in settings.FLAVOURS:
                set_flavour(flavour, request, permanent=True)

        response = self.get_response(request)

        flavour_storage.save(request, response)
        return response
Esempio n. 2
0
 def process_response(self, request, response):
     flavour_storage.save(request, response)
     return response
Esempio n. 3
0
 def process_response(self, request, response):
     flavour_storage.save(request, response)
     return response