Added content name attribute to portal template
authorThierry Florac <thierry.florac@onf.fr>
Wed, 20 Jun 2018 08:26:22 +0200
changeset 120 4f2a1d921a4e
parent 119 d2d0c38fa8f8
child 121 a7c7efdc532b
Added content name attribute to portal template
src/pyams_portal/template.py
--- a/src/pyams_portal/template.py	Wed Jun 20 08:25:43 2018 +0200
+++ b/src/pyams_portal/template.py	Wed Jun 20 08:26:22 2018 +0200
@@ -42,6 +42,8 @@
 from zope.schema.fieldproperty import FieldProperty
 from zope.schema.vocabulary import SimpleVocabulary, SimpleTerm
 
+from pyams_portal import _
+
 
 #
 # Portal templates container
@@ -81,6 +83,8 @@
 
     name = FieldProperty(IPortalTemplate['name'])
 
+    content_name = _("Portal template")
+
 
 @subscriber(IObjectAddedEvent, context_selector=IPortalTemplate)
 def handle_added_template(event):