Version 0.1.56 0.1.56
authorThierry Florac <tflorac@ulthar.net>
Fri, 18 Oct 2019 15:28:55 +0200
changeset 1376 0155c71d38f0
parent 1375 112904420dc2
child 1377 0c3872faa1c4
Version 0.1.56
buildout.cfg
docs/HISTORY.txt
setup.py
src/pyams_content.egg-info/PKG-INFO
src/pyams_content.egg-info/SOURCES.txt
src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.mo
src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.po
src/pyams_content/locales/pyams_content.pot
src/pyams_content/zmi/resources/css/pyams_content.css
src/pyams_content/zmi/resources/css/pyams_content.css.map
src/pyams_content/zmi/resources/css/pyams_content.min.css
src/pyams_content/zmi/resources/less/pyams_content.less
--- a/buildout.cfg	Fri Oct 18 15:12:25 2019 +0200
+++ b/buildout.cfg	Fri Oct 18 15:28:55 2019 +0200
@@ -85,4 +85,4 @@
 eggs = pyams_content [test]
 
 [versions]
-pyams_content = 0.1.55
+pyams_content = 0.1.56
--- a/docs/HISTORY.txt	Fri Oct 18 15:12:25 2019 +0200
+++ b/docs/HISTORY.txt	Fri Oct 18 15:28:55 2019 +0200
@@ -1,6 +1,11 @@
 History
 =======
 
+0.1.56
+------
+ - added SVG image-map portlet
+ - added method in image maps to convert coordinates to SVG polygon format
+
 0.1.55
 ------
  - updated form's captcha and proxy management by adding default settings to forms manager
--- a/setup.py	Fri Oct 18 15:12:25 2019 +0200
+++ b/setup.py	Fri Oct 18 15:28:55 2019 +0200
@@ -24,7 +24,7 @@
 README = os.path.join(DOCS, 'README.txt')
 HISTORY = os.path.join(DOCS, 'HISTORY.txt')
 
-version = '0.1.55'
+version = '0.1.56'
 long_description = open(README).read() + '\n\n' + open(HISTORY).read()
 
 tests_require = []
--- a/src/pyams_content.egg-info/PKG-INFO	Fri Oct 18 15:12:25 2019 +0200
+++ b/src/pyams_content.egg-info/PKG-INFO	Fri Oct 18 15:28:55 2019 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: pyams-content
-Version: 0.1.55
+Version: 0.1.56
 Summary: PyAMS base content interfaces and classes
 Home-page: http://hg.ztfy.org/pyams/pyams_content
 Author: Thierry Florac
@@ -72,6 +72,11 @@
         History
         =======
         
+        0.1.56
+        ------
+         - added SVG image-map portlet
+         - added method in image maps to convert coordinates to SVG polygon format
+        
         0.1.55
         ------
          - updated form's captcha and proxy management by adding default settings to forms manager
--- a/src/pyams_content.egg-info/SOURCES.txt	Fri Oct 18 15:12:25 2019 +0200
+++ b/src/pyams_content.egg-info/SOURCES.txt	Fri Oct 18 15:28:55 2019 +0200
@@ -354,6 +354,10 @@
 src/pyams_content/shared/imagemap/manager.py
 src/pyams_content/shared/imagemap/paragraph.py
 src/pyams_content/shared/imagemap/schema.py
+src/pyams_content/shared/imagemap/portlet/__init__.py
+src/pyams_content/shared/imagemap/portlet/interfaces.py
+src/pyams_content/shared/imagemap/portlet/zmi/__init__.py
+src/pyams_content/shared/imagemap/portlet/zmi/templates/imagemap-preview.pt
 src/pyams_content/shared/imagemap/zmi/__init__.py
 src/pyams_content/shared/imagemap/zmi/area.py
 src/pyams_content/shared/imagemap/zmi/container.py
@@ -430,6 +434,7 @@
 src/pyams_content/zmi/interfaces.py
 src/pyams_content/zmi/tinymce.py
 src/pyams_content/zmi/resources/css/pyams_content.css
+src/pyams_content/zmi/resources/css/pyams_content.css.map
 src/pyams_content/zmi/resources/css/pyams_content.min.css
 src/pyams_content/zmi/resources/img/internal-link.png
 src/pyams_content/zmi/resources/js/jquery-canvasAreaDraw.js
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 Oct 18 15:12:25 2019 +0200
+++ b/src/pyams_content/locales/fr/LC_MESSAGES/pyams_content.po	Fri Oct 18 15:28:55 2019 +0200
@@ -5,7 +5,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2019-10-16 18:21+0200\n"
+"POT-Creation-Date: 2019-10-18 15:13+0200\n"
 "PO-Revision-Date: 2015-09-10 10:42+0200\n"
 "Last-Translator: Thierry Florac <tflorac@ulthar.net>\n"
 "Language-Team: French\n"
@@ -205,6 +205,7 @@
 #: src/pyams_content/shared/common/zmi/templates/advanced-search.pt:223
 #: src/pyams_content/shared/site/portlet/interfaces.py:24
 #: src/pyams_content/shared/site/zmi/folder.py:66
+#: src/pyams_content/shared/imagemap/portlet/interfaces.py:28
 #: src/pyams_content/shared/imagemap/zmi/container.py:123
 #: src/pyams_content/shared/logo/interfaces.py:42
 msgid "Title"
@@ -2495,6 +2496,7 @@
 #: src/pyams_content/features/alert/interfaces.py:69
 #: src/pyams_content/features/menu/interfaces.py:74
 #: src/pyams_content/shared/imagemap/interfaces.py:96
+#: src/pyams_content/shared/imagemap/portlet/interfaces.py:31
 #: src/pyams_content/shared/logo/interfaces.py:54
 msgid "Internal reference"
 msgstr "Référence interne"
@@ -4147,8 +4149,8 @@
 "If a proxy server is required to access recaptcha services, please set them "
 "here"
 msgstr ""
-"Si un serveur proxy est nécessaire pour accéder aux services de vérfication des captchas, "
-"veuillez indiquer ses caractéristiques"
+"Si un serveur proxy est nécessaire pour accéder aux services de vérfication "
+"des captchas, veuillez indiquer ses caractéristiques"
 
 #: src/pyams_content/shared/form/interfaces.py:65
 msgid "Protocol"
@@ -4159,8 +4161,8 @@
 "If your server is behind a proxy, please set it's protocol here; HTTPS "
 "support is required for reCaptcha"
 msgstr ""
-"Protocole d'accès au proxy ; le support du HTTPS est nécessaire pour accéder au service de "
-"vérification des captchas"
+"Protocole d'accès au proxy ; le support du HTTPS est nécessaire pour accéder "
+"au service de vérification des captchas"
 
 #: src/pyams_content/shared/form/interfaces.py:72
 msgid "Host name"
@@ -4170,8 +4172,7 @@
 msgid ""
 "If your server is behind a proxy, please set it's address here; captcha "
 "verification requires HTTPS support..."
-msgstr ""
-"Nom DNS du serveur proxy"
+msgstr "Nom DNS du serveur proxy"
 
 #: src/pyams_content/shared/form/interfaces.py:78
 msgid "Port number"
@@ -4179,8 +4180,7 @@
 
 #: src/pyams_content/shared/form/interfaces.py:79
 msgid "If your server is behind a proxy, plase set it's port number here"
-msgstr ""
-"Numéro de port utilisé pour l'accès au proxy"
+msgstr "Numéro de port utilisé pour l'accès au proxy"
 
 #: src/pyams_content/shared/form/interfaces.py:84
 msgid "Username"
@@ -4207,8 +4207,8 @@
 "If proxy usage is restricted to several domains names, you can set them "
 "here, separated by comas"
 msgstr ""
-"Si l'usage du proxy n'est nécessaire que pour certains noms de domaines, vous pouvez "
-"indiquer ces noms ici, séparés par des virgules"
+"Si l'usage du proxy n'est nécessaire que pour certains noms de domaines, "
+"vous pouvez indiquer ces noms ici, séparés par des virgules"
 
 #: src/pyams_content/shared/form/interfaces.py:112
 msgid "Field name"
@@ -4538,7 +4538,8 @@
 
 #: src/pyams_content/shared/form/zmi/manager.py:91
 msgid "You must define hostname to use a proxy"
-msgstr "Vous devez au moins définir le nom du serveur pour pouvoir utiliser un proxy"
+msgstr ""
+"Vous devez au moins définir le nom du serveur pour pouvoir utiliser un proxy"
 
 #: src/pyams_content/shared/form/zmi/manager.py:64
 msgid "Use captcha"
@@ -6689,12 +6690,13 @@
 msgid "Topic « {title} »"
 msgstr "Article « {title} »"
 
-#: src/pyams_content/shared/imagemap/__init__.py:152
+#: src/pyams_content/shared/imagemap/__init__.py:159
 msgid "no area defined"
 msgstr "aucune zone définie"
 
 #: src/pyams_content/shared/imagemap/interfaces.py:36
 #: src/pyams_content/shared/imagemap/interfaces.py:89
+#: src/pyams_content/shared/imagemap/portlet/__init__.py:43
 msgid "Image map"
 msgstr "Image cliquable"
 
@@ -6733,6 +6735,7 @@
 msgstr "Liste des zones cliquables définies sur l'image"
 
 #: src/pyams_content/shared/imagemap/interfaces.py:97
+#: src/pyams_content/shared/imagemap/portlet/interfaces.py:32
 msgid "Reference to image map object"
 msgstr ""
 "Référence interne de l'image cliquable. Vous pouvez la rechercher par des "
--- a/src/pyams_content/locales/pyams_content.pot	Fri Oct 18 15:12:25 2019 +0200
+++ b/src/pyams_content/locales/pyams_content.pot	Fri Oct 18 15:28:55 2019 +0200
@@ -6,7 +6,7 @@
 msgid ""
 msgstr ""
 "Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2019-10-16 18:21+0200\n"
+"POT-Creation-Date: 2019-10-18 15:13+0200\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"
@@ -202,6 +202,7 @@
 #: ./src/pyams_content/shared/common/zmi/templates/advanced-search.pt:223
 #: ./src/pyams_content/shared/site/portlet/interfaces.py:24
 #: ./src/pyams_content/shared/site/zmi/folder.py:66
+#: ./src/pyams_content/shared/imagemap/portlet/interfaces.py:28
 #: ./src/pyams_content/shared/imagemap/zmi/container.py:123
 #: ./src/pyams_content/shared/logo/interfaces.py:42
 msgid "Title"
@@ -2345,6 +2346,7 @@
 #: ./src/pyams_content/features/alert/interfaces.py:69
 #: ./src/pyams_content/features/menu/interfaces.py:74
 #: ./src/pyams_content/shared/imagemap/interfaces.py:96
+#: ./src/pyams_content/shared/imagemap/portlet/interfaces.py:31
 #: ./src/pyams_content/shared/logo/interfaces.py:54
 msgid "Internal reference"
 msgstr ""
@@ -6120,12 +6122,13 @@
 msgid "Topic « {title} »"
 msgstr ""
 
-#: ./src/pyams_content/shared/imagemap/__init__.py:152
+#: ./src/pyams_content/shared/imagemap/__init__.py:159
 msgid "no area defined"
 msgstr ""
 
 #: ./src/pyams_content/shared/imagemap/interfaces.py:36
 #: ./src/pyams_content/shared/imagemap/interfaces.py:89
+#: ./src/pyams_content/shared/imagemap/portlet/__init__.py:43
 msgid "Image map"
 msgstr ""
 
@@ -6164,6 +6167,7 @@
 msgstr ""
 
 #: ./src/pyams_content/shared/imagemap/interfaces.py:97
+#: ./src/pyams_content/shared/imagemap/portlet/interfaces.py:32
 msgid "Reference to image map object"
 msgstr ""
 
--- a/src/pyams_content/zmi/resources/css/pyams_content.css	Fri Oct 18 15:12:25 2019 +0200
+++ b/src/pyams_content/zmi/resources/css/pyams_content.css	Fri Oct 18 15:28:55 2019 +0200
@@ -49,3 +49,10 @@
 .sortable.gallery {
   max-height: 550px;
 }
+.wrapper-imagemap {
+  width: 100%;
+}
+.wrapper-imagemap img {
+  width: 100%;
+}
+/*# sourceMappingURL=pyams_content.css.map */
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_content/zmi/resources/css/pyams_content.css.map	Fri Oct 18 15:28:55 2019 +0200
@@ -0,0 +1,1 @@
+{"version":3,"sources":["../less/pyams_content.less"],"names":[],"mappings":"AAAA,WAAW,SAEV;EACC,eAAA;EACA,0BAAA;;AAJF,WAAW,SAEV,aAIC;EACC,kBAAA;EACA,YAAA;;AARH,WAAW,SAEV,aASC;EACC,eAAA;EACA,YAAA;;AAGD,WAhBS,SAEV;AAFD,WAAW,SAEV,aAeC;EACC,yBAAA;;AAEA,QAA0B;EAgD7B,WApEW,SAEV;EAkED,WApEW,SAEV,aAeC;IAIE,wBAAA;;;AAED,QAA0B,uBAAuB;EA6CpD,WApEW,SAEV;EAkED,WApEW,SAEV,aAeC;IAOE,wBAAA;;;AAGD,SAAU,YA3BF,SAEV;AAyBE,SAAU,YA3BF,SAEV,aAeC;EAWE,wBAAA;;AAEA,QAA0B;EAsC9B,SAzCa,YA3BF,SAEV;EAkED,SAzCa,YA3BF,SAEV,aAeC;IAeI,wBAAA;;;AAIH,YAAa,YApCL,SAEV;AAkCE,YAAa,YApCL,SAEV,aAeC;EAoBE,wBAAA;;AAOJ,mBACC;EACC,+BAAA;;AAFF,mBAIC,WAAU;EACT,mBAAA;;AAMD,SAAC;EACA,iBAAA;;AAKF;EACC,WAAA;;AADD,iBAGC;EACC,WAAA","file":"pyams_content.css"}
\ No newline at end of file
--- a/src/pyams_content/zmi/resources/css/pyams_content.min.css	Fri Oct 18 15:12:25 2019 +0200
+++ b/src/pyams_content/zmi/resources/css/pyams_content.min.css	Fri Oct 18 15:28:55 2019 +0200
@@ -1,1 +1,1 @@
-.ams-widget.comments .widget-body{position:fixed;height:calc(100% - 337px)}.ams-widget.comments .widget-body .chat-body{position:relative;height:100%}.ams-widget.comments .widget-body .chat-footer{position:fixed;bottom:10px}.ams-widget.comments .widget-body,.ams-widget.comments .widget-body .chat-footer{width:calc(100% - 240px)}@media (max-width:767px){.ams-widget.comments .widget-body,.ams-widget.comments .widget-body .chat-footer{width:calc(100% - 10px)}}@media (min-width:768px) and (max-width:979px){.ams-widget.comments .widget-body,.ams-widget.comments .widget-body .chat-footer{width:calc(100% - 20px)}}.minified .ams-widget.comments .widget-body,.minified .ams-widget.comments .widget-body .chat-footer{width:calc(100% - 65px)}@media (max-width:767px){.minified .ams-widget.comments .widget-body,.minified .ams-widget.comments .widget-body .chat-footer{width:calc(100% - 55px)}}.hidden-menu .ams-widget.comments .widget-body,.hidden-menu .ams-widget.comments .widget-body .chat-footer{width:calc(100% - 30px)}.pictograms-manager .pictogram{border-bottom:1px solid silver}.pictograms-manager .pictogram:last-child{border-bottom:none}.sortable.gallery{max-height:550px}
+.ams-widget.comments .widget-body{position:fixed;height:calc(100% - 337px)}.ams-widget.comments .widget-body .chat-body{position:relative;height:100%}.ams-widget.comments .widget-body .chat-footer{position:fixed;bottom:10px}.ams-widget.comments .widget-body,.ams-widget.comments .widget-body .chat-footer{width:calc(100% - 240px)}@media (max-width:767px){.ams-widget.comments .widget-body,.ams-widget.comments .widget-body .chat-footer{width:calc(100% - 10px)}}@media (min-width:768px) and (max-width:979px){.ams-widget.comments .widget-body,.ams-widget.comments .widget-body .chat-footer{width:calc(100% - 20px)}}.minified .ams-widget.comments .widget-body,.minified .ams-widget.comments .widget-body .chat-footer{width:calc(100% - 65px)}@media (max-width:767px){.minified .ams-widget.comments .widget-body,.minified .ams-widget.comments .widget-body .chat-footer{width:calc(100% - 55px)}}.hidden-menu .ams-widget.comments .widget-body,.hidden-menu .ams-widget.comments .widget-body .chat-footer{width:calc(100% - 30px)}.pictograms-manager .pictogram{border-bottom:1px solid silver}.pictograms-manager .pictogram:last-child{border-bottom:none}.sortable.gallery{max-height:550px}.wrapper-imagemap{width:100%}.wrapper-imagemap img{width:100%}
--- a/src/pyams_content/zmi/resources/less/pyams_content.less	Fri Oct 18 15:12:25 2019 +0200
+++ b/src/pyams_content/zmi/resources/less/pyams_content.less	Fri Oct 18 15:28:55 2019 +0200
@@ -56,4 +56,13 @@
 	&.gallery {
 		max-height: 550px;
 	}
-}
\ No newline at end of file
+}
+
+
+.wrapper-imagemap {
+	width: 100%;
+
+	img {
+		width: 100%;
+	}
+}