Updated request access
authorThierry Florac <tflorac@ulthar.net>
Sun, 11 Mar 2018 11:02:59 +0100
changeset 64 9655802d1230
parent 63 aa14e031f381
child 65 5c9edb045032
Updated request access
src/pyams_portal/portlet.py
--- a/src/pyams_portal/portlet.py	Sat Mar 10 02:10:04 2018 +0100
+++ b/src/pyams_portal/portlet.py	Sun Mar 11 11:02:59 2018 +0100
@@ -130,7 +130,7 @@
     def __init__(self, context, request, view, settings):
         super(PortletContentProvider, self).__init__(context, request, view)
         self.settings = settings
-        self.portlet = self.request.registry.getUtility(IPortlet, name=settings.configuration.portlet_name)
+        self.portlet = request.registry.getUtility(IPortlet, name=settings.configuration.portlet_name)
 
     def __call__(self):
         if not self.settings.visible: