# HG changeset patch # User Thierry Florac # Date 1529475982 -7200 # Node ID 4f2a1d921a4e4045d6cc7948ee63a2189699e826 # Parent d2d0c38fa8f8317548de913c0d5569bded4a0301 Added content name attribute to portal template diff -r d2d0c38fa8f8 -r 4f2a1d921a4e 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):