Back to index

plone3  3.1.7
portlet_refresher.py
Go to the documentation of this file.
00001 # -*- coding: UTF-8 -*-
00002 
00003 from zope.interface import implements
00004 
00005 from plonekssview import PloneKSSView
00006 from interfaces import IPloneKSSView
00007 
00008 class PortletView(PloneKSSView):
00009 
00010     # --
00011     # Portlet refresher actions
00012     # --
00013 
00014     implements(IPloneKSSView)
00015     
00016     def refreshPortlet(self, portlethash, nodeid=None):
00017         'Refresh portlet by name.'
00018         self.getCommandSet('plone').refreshPortlet(portlethash)
00019         return self.render()