Back to index

plone3  3.1.7
kss.py
Go to the documentation of this file.
00001 from zope.interface import implements
00002 from zope.component import getUtility, getMultiAdapter
00003 
00004 from Acquisition import aq_inner
00005 
00006 from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile
00007 
00008 from plone.app.kss.interfaces import IPloneKSSView
00009 from plone.app.kss.plonekssview import PloneKSSView as base
00010 
00011 class ContentrulesControlpanelCommand(base):
00012     """Operations on contentrules done using KSS
00013     """
00014     implements(IPloneKSSView)
00015     
00016     def replaceFilteredRulesForm(self, ruleType):
00017         content = self.macroContent('@@rules-controlpanel/template/macros/rules_table_form', ruleType=ruleType)
00018         self.getCommandSet('core').replaceHTML('#rules_table_form', content)
00019         return self.render()
00020