--- a/buildout.cfg Fri Jan 18 15:31:28 2019 +0100
+++ b/buildout.cfg Fri Jan 18 15:42:19 2019 +0100
@@ -86,4 +86,4 @@
eggs = pyams_content [test]
[versions]
-pyams_content = 0.1.39.1
+pyams_content = 0.1.40
--- a/docs/HISTORY.txt Fri Jan 18 15:31:28 2019 +0100
+++ b/docs/HISTORY.txt Fri Jan 18 15:42:19 2019 +0100
@@ -1,6 +1,15 @@
History
=======
+0.1.40
+------
+ - added views and search folders sort option based on "visible publication date"; this date is chosen at publication
+ time and can be the current version effective publication date, or the first version effective publication date
+ - use factories interfaces in paragraphs add and edit forms
+ - added social network connection interface and adapters
+ - added duration and age range attributes to resources
+ - don't make comment required when canceling a prepared publication
+
0.1.39.1
--------
- renamed sort constant name and updated sorting labels
--- a/setup.py Fri Jan 18 15:31:28 2019 +0100
+++ b/setup.py Fri Jan 18 15:42:19 2019 +0100
@@ -24,7 +24,7 @@
README = os.path.join(DOCS, 'README.txt')
HISTORY = os.path.join(DOCS, 'HISTORY.txt')
-version = '0.1.39.1'
+version = '0.1.40'
long_description = open(README).read() + '\n\n' + open(HISTORY).read()
tests_require = []
--- a/src/pyams_content.egg-info/PKG-INFO Fri Jan 18 15:31:28 2019 +0100
+++ b/src/pyams_content.egg-info/PKG-INFO Fri Jan 18 15:42:19 2019 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pyams-content
-Version: 0.1.39.1
+Version: 0.1.40
Summary: PyAMS base content interfaces and classes
Home-page: http://hg.ztfy.org/pyams/pyams_content
Author: Thierry Florac
@@ -72,6 +72,15 @@
History
=======
+ 0.1.40
+ ------
+ - added views and search folders sort option based on "visible publication date"; this date is chosen at publication
+ time and can be the current version effective publication date, or the first version effective publication date
+ - use factories interfaces in paragraphs add and edit forms
+ - added social network connection interface and adapters
+ - added duration and age range attributes to resources
+ - don't make comment required when canceling a prepared publication
+
0.1.39.1
--------
- renamed sort constant name and updated sorting labels
--- a/src/pyams_content.egg-info/SOURCES.txt Fri Jan 18 15:31:28 2019 +0100
+++ b/src/pyams_content.egg-info/SOURCES.txt Fri Jan 18 15:42:19 2019 +0100
@@ -227,6 +227,7 @@
src/pyams_content/features/share/portlet/zmi/templates/toolbox-preview.pt
src/pyams_content/features/share/zmi/__init__.py
src/pyams_content/features/share/zmi/container.py
+src/pyams_content/features/share/zmi/interfaces.py
src/pyams_content/features/thesaurus/__init__.py
src/pyams_content/features/thesaurus/interfaces.py
src/pyams_content/features/thesaurus/zmi/__init__.py
@@ -370,7 +371,10 @@
src/pyams_content/shared/resource/__init__.py
src/pyams_content/shared/resource/interfaces.py
src/pyams_content/shared/resource/manager.py
+src/pyams_content/shared/resource/schema.py
src/pyams_content/shared/resource/zmi/__init__.py
+src/pyams_content/shared/resource/zmi/interfaces.py
+src/pyams_content/shared/resource/zmi/widget.py
src/pyams_content/shared/site/__init__.py
src/pyams_content/shared/site/container.py
src/pyams_content/shared/site/folder.py
Binary file src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.mo has changed
--- a/src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.po Fri Jan 18 15:31:28 2019 +0100
+++ b/src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.po Fri Jan 18 15:42:19 2019 +0100
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2019-01-17 16:40+0100\n"
+"POT-Creation-Date: 2019-01-17 18:03+0100\n"
"PO-Revision-Date: 2015-09-10 10:42+0200\n"
"Last-Translator: Thierry Florac <tflorac@ulthar.net>\n"
"Language-Team: French\n"
@@ -155,7 +155,7 @@
#: src/pyams_content/component/paragraph/interfaces/audio.py:46
#: src/pyams_content/component/paragraph/interfaces/verbatim.py:44
#: src/pyams_content/component/video/interfaces.py:42
-#: src/pyams_content/shared/resource/interfaces.py:64
+#: src/pyams_content/shared/resource/interfaces.py:66
msgid "Author"
msgstr "Auteur"
@@ -3729,112 +3729,128 @@
"Le responsable n'aura accès qu'aux contenus dont ces utilisateurs sont "
"propriétaires"
-#: src/pyams_content/shared/resource/interfaces.py:29
+#: src/pyams_content/shared/resource/schema.py:26
+msgid "Minimum age"
+msgstr "Âge minimum"
+
+#: src/pyams_content/shared/resource/schema.py:29
+msgid "Maximum age"
+msgstr "Âge maximum"
+
+#: src/pyams_content/shared/resource/interfaces.py:31
msgid "Resource"
msgstr "Ressource"
-#: src/pyams_content/shared/resource/interfaces.py:58
+#: src/pyams_content/shared/resource/interfaces.py:60
msgid "Original country"
msgstr "Pays d'origine"
-#: src/pyams_content/shared/resource/interfaces.py:61
+#: src/pyams_content/shared/resource/interfaces.py:63
msgid "Original title"
msgstr "Titre original"
-#: src/pyams_content/shared/resource/interfaces.py:67
+#: src/pyams_content/shared/resource/interfaces.py:69
msgid "Translator"
msgstr "Traducteur"
-#: src/pyams_content/shared/resource/interfaces.py:70
+#: src/pyams_content/shared/resource/interfaces.py:72
msgid "Illustrator"
msgstr "Illustrateur"
-#: src/pyams_content/shared/resource/interfaces.py:73
+#: src/pyams_content/shared/resource/interfaces.py:75
msgid "Drawer"
msgstr "Dessinateur"
-#: src/pyams_content/shared/resource/interfaces.py:76
+#: src/pyams_content/shared/resource/interfaces.py:78
msgid "Colourist"
msgstr "Coloriste"
-#: src/pyams_content/shared/resource/interfaces.py:79
+#: src/pyams_content/shared/resource/interfaces.py:81
msgid "Lettering"
msgstr "Lettrage"
-#: src/pyams_content/shared/resource/interfaces.py:82
+#: src/pyams_content/shared/resource/interfaces.py:84
msgid "Producer"
msgstr "Producteur"
-#: src/pyams_content/shared/resource/interfaces.py:85
+#: src/pyams_content/shared/resource/interfaces.py:87
msgid "Director"
msgstr "Réalisateur"
-#: src/pyams_content/shared/resource/interfaces.py:88
+#: src/pyams_content/shared/resource/interfaces.py:90
msgid "Actors"
msgstr "Acteurs"
-#: src/pyams_content/shared/resource/interfaces.py:91
+#: src/pyams_content/shared/resource/interfaces.py:93
msgid "Editor"
msgstr "Éditeur"
-#: src/pyams_content/shared/resource/interfaces.py:94
+#: src/pyams_content/shared/resource/interfaces.py:96
msgid "Collection"
msgstr "Collection"
-#: src/pyams_content/shared/resource/interfaces.py:97
+#: src/pyams_content/shared/resource/interfaces.py:99
msgid "Series"
msgstr "Série"
-#: src/pyams_content/shared/resource/interfaces.py:100
+#: src/pyams_content/shared/resource/interfaces.py:102
msgid "Volume"
msgstr "Volume"
-#: src/pyams_content/shared/resource/interfaces.py:103
+#: src/pyams_content/shared/resource/interfaces.py:105
msgid "Format"
msgstr "Format"
-#: src/pyams_content/shared/resource/interfaces.py:106
+#: src/pyams_content/shared/resource/interfaces.py:108
msgid "Nb pages"
msgstr "Nombre de pages"
-#: src/pyams_content/shared/resource/interfaces.py:110
+#: src/pyams_content/shared/resource/interfaces.py:112
+msgid "Duration"
+msgstr "Durée"
+
+#: src/pyams_content/shared/resource/interfaces.py:115
+msgid "Age range"
+msgstr "Tranche d'âge"
+
+#: src/pyams_content/shared/resource/interfaces.py:118
msgid "Release year"
msgstr "Année de parution"
-#: src/pyams_content/shared/resource/interfaces.py:114
+#: src/pyams_content/shared/resource/interfaces.py:122
msgid "Awards"
msgstr "Récompenses"
-#: src/pyams_content/shared/resource/interfaces.py:117
+#: src/pyams_content/shared/resource/interfaces.py:125
msgid "Editor reference"
msgstr "Référence chez l'éditeur"
-#: src/pyams_content/shared/resource/interfaces.py:120
+#: src/pyams_content/shared/resource/interfaces.py:128
msgid "ISBN number"
msgstr "Numéro ISBN"
-#: src/pyams_content/shared/resource/interfaces.py:123
+#: src/pyams_content/shared/resource/interfaces.py:131
msgid "Price"
msgstr "Prix"
-#: src/pyams_content/shared/resource/interfaces.py:127
+#: src/pyams_content/shared/resource/interfaces.py:135
msgid "Source URI"
msgstr "URI source"
-#: src/pyams_content/shared/resource/interfaces.py:128
+#: src/pyams_content/shared/resource/interfaces.py:136
msgid "External URL used to get more information about resource"
msgstr ""
"URI externe utilisée pour accéder à plus d'informations sur la ressource"
-#: src/pyams_content/shared/resource/interfaces.py:131
+#: src/pyams_content/shared/resource/interfaces.py:139
msgid "Summary"
msgstr "Sommaire"
-#: src/pyams_content/shared/resource/interfaces.py:134
+#: src/pyams_content/shared/resource/interfaces.py:142
msgid "Synopsis"
msgstr "Synopsis"
-#: src/pyams_content/shared/resource/interfaces.py:137
+#: src/pyams_content/shared/resource/interfaces.py:145
msgid "Publisher's words"
msgstr "Le mot du site"
--- a/src/pyams_content/locales/pyams_content.pot Fri Jan 18 15:31:28 2019 +0100
+++ b/src/pyams_content/locales/pyams_content.pot Fri Jan 18 15:42:19 2019 +0100
@@ -6,7 +6,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2019-01-17 16:40+0100\n"
+"POT-Creation-Date: 2019-01-17 18:03+0100\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -149,7 +149,7 @@
#: ./src/pyams_content/component/paragraph/interfaces/audio.py:46
#: ./src/pyams_content/component/paragraph/interfaces/verbatim.py:44
#: ./src/pyams_content/component/video/interfaces.py:42
-#: ./src/pyams_content/shared/resource/interfaces.py:64
+#: ./src/pyams_content/shared/resource/interfaces.py:66
msgid "Author"
msgstr ""
@@ -3477,111 +3477,127 @@
msgid "Manager will have access to contents owned by these principals"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:29
+#: ./src/pyams_content/shared/resource/schema.py:26
+msgid "Minimum age"
+msgstr ""
+
+#: ./src/pyams_content/shared/resource/schema.py:29
+msgid "Maximum age"
+msgstr ""
+
+#: ./src/pyams_content/shared/resource/interfaces.py:31
msgid "Resource"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:58
+#: ./src/pyams_content/shared/resource/interfaces.py:60
msgid "Original country"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:61
+#: ./src/pyams_content/shared/resource/interfaces.py:63
msgid "Original title"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:67
+#: ./src/pyams_content/shared/resource/interfaces.py:69
msgid "Translator"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:70
+#: ./src/pyams_content/shared/resource/interfaces.py:72
msgid "Illustrator"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:73
+#: ./src/pyams_content/shared/resource/interfaces.py:75
msgid "Drawer"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:76
+#: ./src/pyams_content/shared/resource/interfaces.py:78
msgid "Colourist"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:79
+#: ./src/pyams_content/shared/resource/interfaces.py:81
msgid "Lettering"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:82
+#: ./src/pyams_content/shared/resource/interfaces.py:84
msgid "Producer"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:85
+#: ./src/pyams_content/shared/resource/interfaces.py:87
msgid "Director"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:88
+#: ./src/pyams_content/shared/resource/interfaces.py:90
msgid "Actors"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:91
+#: ./src/pyams_content/shared/resource/interfaces.py:93
msgid "Editor"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:94
+#: ./src/pyams_content/shared/resource/interfaces.py:96
msgid "Collection"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:97
+#: ./src/pyams_content/shared/resource/interfaces.py:99
msgid "Series"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:100
+#: ./src/pyams_content/shared/resource/interfaces.py:102
msgid "Volume"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:103
+#: ./src/pyams_content/shared/resource/interfaces.py:105
msgid "Format"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:106
+#: ./src/pyams_content/shared/resource/interfaces.py:108
msgid "Nb pages"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:110
+#: ./src/pyams_content/shared/resource/interfaces.py:112
+msgid "Duration"
+msgstr ""
+
+#: ./src/pyams_content/shared/resource/interfaces.py:115
+msgid "Age range"
+msgstr ""
+
+#: ./src/pyams_content/shared/resource/interfaces.py:118
msgid "Release year"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:114
+#: ./src/pyams_content/shared/resource/interfaces.py:122
msgid "Awards"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:117
+#: ./src/pyams_content/shared/resource/interfaces.py:125
msgid "Editor reference"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:120
-msgid "ISBN number"
-msgstr ""
-
-#: ./src/pyams_content/shared/resource/interfaces.py:123
-msgid "Price"
-msgstr ""
-
-#: ./src/pyams_content/shared/resource/interfaces.py:127
-msgid "Source URI"
-msgstr ""
-
#: ./src/pyams_content/shared/resource/interfaces.py:128
-msgid "External URL used to get more information about resource"
+msgid "ISBN number"
msgstr ""
#: ./src/pyams_content/shared/resource/interfaces.py:131
+msgid "Price"
+msgstr ""
+
+#: ./src/pyams_content/shared/resource/interfaces.py:135
+msgid "Source URI"
+msgstr ""
+
+#: ./src/pyams_content/shared/resource/interfaces.py:136
+msgid "External URL used to get more information about resource"
+msgstr ""
+
+#: ./src/pyams_content/shared/resource/interfaces.py:139
msgid "Summary"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:134
+#: ./src/pyams_content/shared/resource/interfaces.py:142
msgid "Synopsis"
msgstr ""
-#: ./src/pyams_content/shared/resource/interfaces.py:137
+#: ./src/pyams_content/shared/resource/interfaces.py:145
msgid "Publisher's words"
msgstr ""