add rich text field for event text

This commit is contained in:
Frédéric Péters 2011-11-29 18:30:54 +01:00
parent 22b4145c79
commit e24566898f
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,7 @@ from Products.CMFCore.utils import getToolByName
from zope.i18n.locales import locales from zope.i18n.locales import locales
from plone.directives import form, dexterity from plone.directives import form, dexterity
from plone.dexterity.content import Item from plone.dexterity.content import Item
from plone.app.textfield import RichText
from tabellio.agenda.interfaces import MessageFactory as _ from tabellio.agenda.interfaces import MessageFactory as _
@ -25,6 +26,7 @@ class IBaseEvent(form.Schema):
start = schema.Datetime(title=_(u'Start')) start = schema.Datetime(title=_(u'Start'))
end = schema.Datetime(title=_(u'End'), required=False) end = schema.Datetime(title=_(u'End'), required=False)
text = RichText(title=_(u'Text'), required=False)
class IEvent(IBaseEvent): class IEvent(IBaseEvent):