Commits

Andriy Kornatskyy committed 45b3f42

Use handler_transforms instead of response_transform for class handlers.

Comments (0)

Files changed (2)

demos/quickstart-empty/src/public/web/views.py

 from wheezy.web.handlers import BaseHandler
 from wheezy.web.handlers import file_handler
 from wheezy.web.handlers import template_handler
+from wheezy.web.transforms import handler_transforms
 
 from public.web.profile import public_cache_profile
 from public.web.profile import static_cache_profile
 class WelcomeHandler(BaseHandler):
 
     @response_cache(public_cache_profile)
-    @response_transforms(gzip_transform())
+    @handler_transforms(gzip_transform())
     def get(self):
         return self.render_response('public/home.html')
 

demos/quickstart-i18n/src/public/web/views.py

 from wheezy.web.handlers import BaseHandler
 from wheezy.web.handlers import file_handler
 from wheezy.web.handlers import template_handler
+from wheezy.web.transforms import handler_transforms
 
 from public.web.profile import public_cache_profile
 from public.web.profile import static_cache_profile
 class WelcomeHandler(PublicHandler):
 
     @response_cache(public_cache_profile)
-    @response_transforms(gzip_transform())
+    @handler_transforms(gzip_transform())
     def get(self):
         # There are two entry points for this handler:
         # one that respond to / and the other one with