from zope.interface import implements from plone.portlets.interfaces import IPortletDataProvider from plone.app.portlets.portlets import base from Products.CMFCore.utils import getToolByName from zope import schema from zope.formlib import form from Products.Five.browser.pagetemplatefile import ViewPageTemplateFile from bh.blog.utils import find_assignment_context from bh.blog.blogentry import IBlogEntry from bh.blog import MessageFactory as _ MONTHVOCAB = {'month_1': _(u'month_1'), 'month_2': _(u'month_2'), 'month_3': _(u'month_3'), 'month_4': _(u'month_4'), 'month_5': _(u'month_5'), 'month_6': _(u'month_6'), 'month_7': _(u'month_7'), 'month_8': _(u'month_8'), 'month_9': _(u'month_9'), 'month_10': _(u'month_10'), 'month_11': _(u'month_11'), 'month_12': _(u'month_12'), } class IArchivePortlet(IPortletDataProvider):
def title(self): """This property is used to give the title of the portlet in the "manage portlets" screen. """ return _("Blog Monthly archive")
def title(self): """This property is used to give the title of the portlet in the "manage portlets" screen. """ return _("Last entries")