Back to index

plone3  3.1.7
replacecontentmenu.py
Go to the documentation of this file.
00001 from zope.deprecation import deprecate
00002 from kss.core.kssview import CommandSet
00003 
00004 # XXX: This is deprecated and will be removed in Plone 4.0. Use the 'plone'
00005 # command set instead.
00006 class ReplaceContentMenuCommand(CommandSet):
00007     """Mainly exists for backward compatibility with old hooks
00008     """
00009     
00010     @deprecate("The 'replacecontentmenu' command set is deprecated and will be removed in Plone 4.0. "
00011                "Please use the 'plone' command set instead.")
00012     def replaceMenu(self):
00013         self.getCommandSet('refreshprovider').refreshProvider('plone.contentmenu', '#portal-column-content div.contentActions')