def title(self): return _(u"Latest Articles")
from five import grok from jornada.contenttypes import _ from plone.app.textfield import RichText from plone.dexterity import content from plone.directives import dexterity from plone.directives import form from plone.namedfile.field import NamedBlobImage from zope import schema from zope.schema.vocabulary import SimpleTerm from zope.schema.vocabulary import SimpleVocabulary grok.templatedir('templates') sections = SimpleVocabulary([ SimpleTerm(value=u'Estados', title=_(u"Estados")), SimpleTerm(value=u'Mundo', title=_(u"Mundo")), SimpleTerm(value=u'Politica', title=_(u"Política")), ]) class IArticle(form.Schema): """An article. Defines a news article. """ subtitle = schema.TextLine( title=_(u"Subtitle"), ) author = schema.TextLine( title=_(u"Author"),