--- a/src/pyams_default_theme/page.py Fri May 25 08:06:38 2018 +0200
+++ b/src/pyams_default_theme/page.py Fri May 25 08:07:03 2018 +0200
@@ -40,8 +40,8 @@
def __init__(self, context, request):
super(PreviewPage, self).__init__(context, request)
- self.language = self.request.params.get('lang')
- self.renderers = sorted(self.request.registry.getAdapters((self.context, self.request), IContentRenderer),
+ self.language = request.params.get('lang')
+ self.renderers = sorted(request.registry.getAdapters((context, request), IContentRenderer),
key=lambda x: getattr(x[1], 'weight', 0))
def update(self):