Пример #1
0
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 wad.blog.utils import find_portlet_assignment_context
from wad.blog.blogentry import IBlogEntry

from wad.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):
Пример #2
0
 def title(self):
     """This property is used to give the title of the portlet in the
     "manage portlets" screen.
     """
     return _("Blog Monthly archive")
Пример #3
0
 def title(self):
     """This property is used to give the title of the portlet in the
     "manage portlets" screen.
     """
     return _("Categories")