Set author attribute as mandatory for all medias
authorThierry Florac <thierry.florac@onf.fr>
Tue, 10 Jul 2018 14:19:56 +0200
changeset 824 5a56ac57d94e
parent 823 46d1f7b3d3bb
child 825 3f5684390091
Set author attribute as mandatory for all medias
src/pyams_content/component/gallery/interfaces/__init__.py
src/pyams_content/component/paragraph/interfaces/audio.py
src/pyams_content/component/paragraph/interfaces/video.py
src/pyams_content/component/video/interfaces/__init__.py
--- a/src/pyams_content/component/gallery/interfaces/__init__.py	Tue Jul 10 14:10:19 2018 +0200
+++ b/src/pyams_content/component/gallery/interfaces/__init__.py	Tue Jul 10 14:19:56 2018 +0200
@@ -60,7 +60,7 @@
 
     author = TextLine(title=_("Author"),
                       description=_("Name of document's author"),
-                      required=False)
+                      required=True)
 
     author_comments = I18nTextField(title=_("Author's comments"),
                                     description=_("Comments relatives to author's rights management"),
--- a/src/pyams_content/component/paragraph/interfaces/audio.py	Tue Jul 10 14:10:19 2018 +0200
+++ b/src/pyams_content/component/paragraph/interfaces/audio.py	Tue Jul 10 14:19:56 2018 +0200
@@ -51,7 +51,7 @@
 
     author = TextLine(title=_("Author"),
                       description=_("Name of document's author"),
-                      required=False)
+                      required=True)
 
     renderer = Choice(title=_("Audio template"),
                       description=_("Presentation template used for this audio file"),
--- a/src/pyams_content/component/paragraph/interfaces/video.py	Tue Jul 10 14:10:19 2018 +0200
+++ b/src/pyams_content/component/paragraph/interfaces/video.py	Tue Jul 10 14:19:56 2018 +0200
@@ -51,7 +51,7 @@
 
     author = TextLine(title=_("Author"),
                       description=_("Name of document's author"),
-                      required=False)
+                      required=True)
 
     renderer = Choice(title=_("Video template"),
                       description=_("Presentation template used for this video"),
--- a/src/pyams_content/component/video/interfaces/__init__.py	Tue Jul 10 14:10:19 2018 +0200
+++ b/src/pyams_content/component/video/interfaces/__init__.py	Tue Jul 10 14:19:56 2018 +0200
@@ -51,7 +51,7 @@
 
     author = TextLine(title=_("Author"),
                       description=_("Name of document's author"),
-                      required=False)
+                      required=True)
 
     provider_name = Choice(title=_("Video provider"),
                            description=_("Name of external platform providing selected video"),