Back to index

plone3  3.1.7
refresh_content_menu.py
Go to the documentation of this file.
00001 # -*- coding: UTF-8 -*-
00002 from zope.interface import implements
00003 from plonekssview import PloneKSSView
00004 
00005 from kss.core import kssaction
00006 from interfaces import IPloneKSSView
00007 
00008 class ContentMenuView(PloneKSSView):
00009 
00010     # --
00011     # ContentMenu in-place refreshment
00012     # --
00013 
00014     implements(IPloneKSSView)
00015 
00016     @kssaction
00017     def contentMenuRefresh(self, id, menu):
00018         # XXX: We only know how to refresh the entire menu at this stage
00019         self.getCommandSet('plone').refreshContentMenu()
00020