summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Péters <fpeters@entrouvert.com>2013-08-22 12:08:39 (GMT)
committerFrédéric Péters <fpeters@entrouvert.com>2013-08-22 12:08:39 (GMT)
commit5fff25c340e922ec253a926068b2615125297ca5 (patch)
tree2c4bc31b0d8d19d64293dd5f8bc7f4144314dc88
parent8db1c70c6c29704936b8777ae667eed7ba87f4d7 (diff)
downloadcollective.dms.thesaurus-5fff25c340e922ec253a926068b2615125297ca5.zip
collective.dms.thesaurus-5fff25c340e922ec253a926068b2615125297ca5.tar.gz
collective.dms.thesaurus-5fff25c340e922ec253a926068b2615125297ca5.tar.bz2
change historical and scope notes to be rich text (#2984)plone-formwidget-autocomplete-update
-rw-r--r--src/collective/dms/thesaurus/dmskeyword.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/collective/dms/thesaurus/dmskeyword.py b/src/collective/dms/thesaurus/dmskeyword.py
index 5c9eb03..2e490f2 100644
--- a/src/collective/dms/thesaurus/dmskeyword.py
+++ b/src/collective/dms/thesaurus/dmskeyword.py
@@ -7,6 +7,8 @@ from zope import schema
from plone.dexterity.schema import DexteritySchemaPolicy
from plone.dexterity.content import Item
+from plone.app.textfield import RichText
+
from plone.supermodel import model
from . import _
@@ -43,13 +45,13 @@ class IDmsKeyword(model.Schema):
)
# HN: historical note
- historical_note = schema.Text(
+ historical_note = RichText(
title=_(u"HN (Historical Note)"),
required=False,
)
# SN: scope note
- scope_note = schema.Text(
+ scope_note = RichText(
title=_(u"SN (Scope Note)"),
required=False,
)