In the previous recipe, we covered how to create a new portlet package and then we examined some of its most remarkable pieces of code.
In this task, we will modify some of the previously explained classes and modules to achieve the desired results: to display several Banners inside a single portlet.
bannerportletmodule, change the
IBannerPortletinterface definition for the following block of code:
... from pox.banner.interfaces import ISection from plone.app.vocabularies.catalog import \ SearchableTextSourceBinder ... class IBannerPortlet(IPortletDataProvider): section = schema.Choice( title=_(u"Section"), description=_(u"Base ...