Added content-type to view portlet internal reference field
authorThierry Florac <thierry.florac@onf.fr>
Tue, 03 Oct 2017 14:44:04 +0200
changeset 193 595d2965fc4d
parent 192 8a16d2f507d7
child 194 6a26b2b0cb47
Added content-type to view portlet internal reference field
src/pyams_content/shared/view/portlet/interfaces.py
--- a/src/pyams_content/shared/view/portlet/interfaces.py	Mon Oct 02 17:03:26 2017 +0200
+++ b/src/pyams_content/shared/view/portlet/interfaces.py	Tue Oct 03 14:44:04 2017 +0200
@@ -19,6 +19,7 @@
 from pyams_portal.interfaces import IPortletSettings
 
 # import packages
+from pyams_content.shared.view import WfView
 from pyams_sequence.schema import InternalReference
 
 from pyams_content import _
@@ -29,4 +30,5 @@
 
     view = InternalReference(title=_("Selected view"),
                              description=_("Reference to the view from which items are extracted"),
+                             content_type=WfView.content_type,
                              required=True)