Added "request" argument
authorThierry Florac <tflorac@ulthar.net>
Fri, 14 Dec 2018 13:37:34 +0100
changeset 291 1808386adb8e
parent 290 c528e2eb7172
child 292 1d2d4bb25fbc
Added "request" argument
src/pyams_default_theme/shared/view/__init__.py
--- a/src/pyams_default_theme/shared/view/__init__.py	Wed Dec 12 11:15:25 2018 +0100
+++ b/src/pyams_default_theme/shared/view/__init__.py	Fri Dec 14 13:37:34 2018 +0100
@@ -12,18 +12,12 @@
 
 __docformat__ = 'restructuredtext'
 
-
-# import standard library
-
-# import interfaces
 from pyams_content.shared.view.interfaces import IWfView
-from pyams_skin.layer import IPyAMSUserLayer
-from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION
-
-# import packages
 from pyams_default_theme.page import BasePreviewPage
 from pyams_pagelet.pagelet import pagelet_config
+from pyams_skin.layer import IPyAMSUserLayer
 from pyams_template.template import template_config
+from pyams_utils.interfaces import VIEW_SYSTEM_PERMISSION
 
 
 @pagelet_config(name='preview.html', context=IWfView, layer=IPyAMSUserLayer,
@@ -34,4 +28,4 @@
 
     @property
     def items(self):
-        return self.context.get_results(self.context, ignore_cache=True)
+        return self.context.get_results(self.context, ignore_cache=True, request=self.request)