Removed portlet renderer attributes and methods inherited from ViewContentProvider
authorThierry Florac <tflorac@ulthar.net>
Thu, 27 Dec 2018 16:25:52 +0100
changeset 246 b2c7a305843b
parent 245 3a76d0bdc3c7
child 247 bb6b98ce4895
Removed portlet renderer attributes and methods inherited from ViewContentProvider
src/pyams_portal/portlet.py
--- a/src/pyams_portal/portlet.py	Thu Dec 27 11:55:53 2018 +0100
+++ b/src/pyams_portal/portlet.py	Thu Dec 27 16:25:52 2018 +0100
@@ -184,8 +184,6 @@
 
     weight = 0
 
-    resources = ()
-
     @property
     def slot_configuration(self):
         template = IPortalPage(self.context).template
@@ -201,11 +199,6 @@
     def use_portlets_cache(self):
         return not bool(self.request.params)
 
-    def update(self):
-        super(PortletRenderer, self).update()
-        for resource in self.resources:
-            resource.need()
-
     def render(self):
         preview_mode = self.request.annotations.get(PREVIEW_MODE, False)
         if preview_mode or not self.use_portlets_cache: