--- a/.installed.cfg Wed Jul 12 12:07:41 2017 +0200
+++ b/.installed.cfg Wed Jul 12 14:33:33 2017 +0200
@@ -1,54 +1,15 @@
[buildout]
installed_develop_eggs = /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/pyams-file.egg-link
+ /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/lingua.egg-link
/home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/pyams-template.egg-link
/home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/pyams-skin.egg-link
/home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/pyams-pagelet.egg-link
/home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/pyams-viewlet.egg-link
/home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/pyams-i18n.egg-link
+ /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/pyams-catalog.egg-link
/home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/pyams-form.egg-link
/home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/pyams-utils.egg-link
-parts = package i18n pyflakes test
-
-[package]
-__buildout_installed__ = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pdistreport
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pcreate
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/ptweens
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/prequest
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pshell
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pserve
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pviews
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/proutes
-__buildout_signature__ = zc.recipe.egg-2.0.3-py3.5.egg setuptools-e7e58fc36ac96295dcff9979007c0533 zc.buildout-2.9.3-py3.5.egg
-_b = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin
-_d = /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs
-_e = /var/local/env/pyams/eggs
-bin-directory = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin
-develop-eggs-directory = /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs
-eggs = pyams_file
- pyramid
- python-magic
- zope.component
- zope.copy
- zope.interface
-eggs-directory = /var/local/env/pyams/eggs
-find-links = http://download.ztfy.org/eggs
-recipe = zc.recipe.egg
-
-[i18n]
-__buildout_installed__ = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pybabel
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/polint
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pot-create
-__buildout_signature__ = zc.recipe.egg-2.0.3-py3.5.egg setuptools-e7e58fc36ac96295dcff9979007c0533 zc.buildout-2.9.3-py3.5.egg
-_b = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin
-_d = /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs
-_e = /var/local/env/pyams/eggs
-bin-directory = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin
-develop-eggs-directory = /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs
-eggs = babel
- lingua
-eggs-directory = /var/local/env/pyams/eggs
-find-links = http://download.ztfy.org/eggs
-recipe = zc.recipe.egg
+parts = pyflakes test package i18n
[pyflakes]
__buildout_installed__ = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pyflakes
@@ -82,3 +43,50 @@
location = /home/tflorac/Dropbox/src/PyAMS/pyams_file/parts/test
recipe = zc.recipe.testrunner
script = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/test
+
+[package]
+__buildout_installed__ = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/proutes
+ /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pviews
+ /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pcreate
+ /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pserve
+ /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/ptweens
+ /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/prequest
+ /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pdistreport
+ /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pshell
+__buildout_signature__ = zc.recipe.egg-2.0.3-py3.5.egg setuptools-e7e58fc36ac96295dcff9979007c0533 zc.buildout-2.9.3-py3.5.egg
+_b = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin
+_d = /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs
+_e = /var/local/env/pyams/eggs
+bin-directory = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin
+develop-eggs-directory = /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs
+eggs = pyams_file
+ pyramid
+ python-magic
+ zope.component
+ zope.copy
+ zope.interface
+eggs-directory = /var/local/env/pyams/eggs
+find-links = http://download.ztfy.org/eggs
+recipe = zc.recipe.egg
+
+[i18n]
+__buildout_installed__ = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pybabel
+ /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pot-create
+ /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/polint
+__buildout_signature__ = zc.recipe.egg-2.0.3-py3.5.egg setuptools-e7e58fc36ac96295dcff9979007c0533 zc.buildout-2.9.3-py3.5.egg
+_b = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin
+_d = /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs
+_e = /var/local/env/pyams/eggs
+bin-directory = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin
+develop-eggs-directory = /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs
+eggs = babel
+ lingua
+eggs-directory = /var/local/env/pyams/eggs
+find-links = http://download.ztfy.org/eggs
+recipe = zc.recipe.egg
+
+[buildout]
+parts = test package i18n pyflakes
+
+[buildout]
+parts = package i18n pyflakes test
--- a/buildout.cfg Wed Jul 12 12:07:41 2017 +0200
+++ b/buildout.cfg Wed Jul 12 14:33:33 2017 +0200
@@ -20,6 +20,8 @@
src = src
develop =
.
+ ../ext/lingua
+ ../pyams_catalog
../pyams_form
../pyams_i18n
../pyams_pagelet
@@ -67,4 +69,4 @@
eggs = pyams_file [test]
[versions]
-pyams_file = 0.1.5
+pyams_file = 0.1.6
--- a/docs/HISTORY.txt Wed Jul 12 12:07:41 2017 +0200
+++ b/docs/HISTORY.txt Wed Jul 12 14:33:33 2017 +0200
@@ -1,6 +1,12 @@
History
=======
+0.1.6
+-----
+ - added file modifier form marker interface
+ - added file modifier action and permission checker
+ - changed file actions display
+
0.1.5
-----
- added check on file content type
--- a/setup.py Wed Jul 12 12:07:41 2017 +0200
+++ b/setup.py Wed Jul 12 14:33:33 2017 +0200
@@ -22,7 +22,7 @@
README = os.path.join(DOCS, 'README.txt')
HISTORY = os.path.join(DOCS, 'HISTORY.txt')
-version = '0.1.5'
+version = '0.1.6'
long_description = open(README).read() + '\n\n' + open(HISTORY).read()
tests_require = []
--- a/src/pyams_file.egg-info/PKG-INFO Wed Jul 12 12:07:41 2017 +0200
+++ b/src/pyams_file.egg-info/PKG-INFO Wed Jul 12 14:33:33 2017 +0200
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: pyams-file
-Version: 0.1.5
+Version: 0.1.6
Summary: PyAMS file interfaces and classes
Home-page: http://hg.ztfy.org/pyams/pyams_file
Author: Thierry Florac
@@ -11,6 +11,12 @@
History
=======
+ 0.1.6
+ -----
+ - added file modifier form marker interface
+ - added file modifier action and permission checker
+ - changed file actions display
+
0.1.5
-----
- added check on file content type
--- a/src/pyams_file/locales/fr/LC_MESSAGES/pyams_file.po~ Wed Jul 12 12:07:41 2017 +0200
+++ b/src/pyams_file/locales/fr/LC_MESSAGES/pyams_file.po~ Wed Jul 12 14:33:33 2017 +0200
@@ -5,7 +5,7 @@
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE 1.0\n"
-"POT-Creation-Date: 2015-02-10 11:50+0100\n"
+"POT-Creation-Date: 2016-11-14 17:49+0100\n"
"PO-Revision-Date: 2015-02-06 21:39+0100\n"
"Last-Translator: Thierry Florac <tflorac@ulthar.net>\n"
"Language-Team: French\n"
@@ -52,79 +52,148 @@
msgid "Delete content"
msgstr "Supprimer ce contenu"
-#: src/pyams_file/zmi/file.py:41
+#: src/pyams_file/zmi/file.py:42
msgid "Properties..."
msgstr "Propriétés..."
-#: src/pyams_file/zmi/file.py:52
+#: src/pyams_file/zmi/file.py:53
msgid "Update file properties"
msgstr "Mise à jour des propriétés"
-#: src/pyams_file/zmi/image.py:53
+#: src/pyams_file/zmi/image.py:61
msgid "Resize image..."
msgstr "Redimensionner l'image..."
-#: src/pyams_file/zmi/image.py:104 src/pyams_file/zmi/image.py:64
+#: src/pyams_file/zmi/image.py:111 src/pyams_file/zmi/image.py:72
msgid "Resize image"
msgstr "Redimensionner l'image"
-#: src/pyams_file/zmi/image.py:138
+#: src/pyams_file/zmi/image.py:146
+msgid ""
+"You can use this form to change image dimensions.\n"
+"\n"
+"This will generate a new image only if requested size is smaller than the "
+"original one."
+msgstr ""
+"Vous pouvez utiliser ce formulaire pour changer la taille de l'image.\n"
+"\n"
+"Une nouvelle image ne sera générée que si les dimensions indiquées sont "
+"inférieures à la taille du fichier actuel."
+
+#: src/pyams_file/zmi/image.py:161
msgid "Crop image..."
msgstr "Recadrer l'image..."
-#: src/pyams_file/zmi/image.py:156
+#: src/pyams_file/zmi/image.py:179
msgid "Crop image"
msgstr "Recadrer l'image"
-#: src/pyams_file/zmi/image.py:63 src/pyams_file/zmi/image.py:148
+#: src/pyams_file/zmi/image.py:245
+msgid "Select square thumbnail..."
+msgstr "Vignette carrée..."
+
+#: src/pyams_file/zmi/image.py:256
+msgid "Select square thumbnail"
+msgstr "Sélection de l'emprise d'une vignette carrée"
+
+#: src/pyams_file/zmi/image.py:309
+msgid "Select panoramic thumbnail..."
+msgstr "Vignette panoramique..."
+
+#: src/pyams_file/zmi/image.py:320
+msgid "Select panoramic thumbnail"
+msgstr "Sélection de l'emprise d'une vignette panoramique"
+
+#: src/pyams_file/zmi/image.py:432
+msgid "Select responsive XS image..."
+msgstr "Image adaptative pour très petits terminaux (XS)..."
+
+#: src/pyams_file/zmi/image.py:444
+msgid "Select image for extra-small (XS) devices"
+msgstr "Sélectionner l'image affichée sur les très petits terminaux (taille XS)"
+
+#: src/pyams_file/zmi/image.py:466
+msgid "Select responsive SM image..."
+msgstr "Image adaptative pour petits terminaux (SM)..."
+
+#: src/pyams_file/zmi/image.py:478
+msgid "Select image for small (SM) devices"
+msgstr "Sélectionner l'image affichée sur les petits terminaux (taille SM)"
+
+#: src/pyams_file/zmi/image.py:500
+msgid "Select responsive MD image..."
+msgstr "Image adaptative pour terminaux moyens (MD)..."
+
+#: src/pyams_file/zmi/image.py:512
+msgid "Select image for medium (MD) devices"
+msgstr "Sélectionner l'image affichée sur les terminaux moyens (taille MD)"
+
+#: src/pyams_file/zmi/image.py:534
+msgid "Select responsive LG image..."
+msgstr "Image adaptative pour grands terminaux (LG)..."
+
+#: src/pyams_file/zmi/image.py:546
+msgid "Select image for large (LG) devices"
+msgstr "Sélectionner l'image affichée sur les grands terminaux (taille LG)"
+
+#: src/pyams_file/zmi/image.py:71 src/pyams_file/zmi/image.py:171
+#: src/pyams_file/zmi/image.py:236 src/pyams_file/zmi/image.py:377
msgid "Close"
msgstr "Fermer"
-#: src/pyams_file/zmi/image.py:70
+#: src/pyams_file/zmi/image.py:78
msgid "New image width"
msgstr "Largeur de l'image"
-#: src/pyams_file/zmi/image.py:72
+#: src/pyams_file/zmi/image.py:80
msgid "New image height"
msgstr "Hauteur de l'image"
-#: src/pyams_file/zmi/image.py:74
+#: src/pyams_file/zmi/image.py:82
msgid "Keep aspect ratio"
msgstr "Ne pas déformer l'image"
-#: src/pyams_file/zmi/image.py:75
+#: src/pyams_file/zmi/image.py:83
msgid ""
"Check to keep original aspect ratio; image will be resized as large as "
"possible within given limits"
msgstr ""
"Sélectionnez 'oui' pour conserver le rapport hauteur/largeur de l'image. "
-"L'image sera redimensionnée pour être aussi grande que possible en fonction "
-"des dimensions indiquées."
+"L'image sera redimensionnée (sans jamais être agrandie !) pour être aussi "
+"grande que possible en fonction des contraintes indiquées."
-#: src/pyams_file/zmi/image.py:149
+#: src/pyams_file/zmi/image.py:172
msgid "Crop"
msgstr "Recadrer l'image"
-#: src/pyams_file/interfaces/__init__.py:95
+#: src/pyams_file/zmi/image.py:237
+msgid "Select thumbnail"
+msgstr "Sélectionner cette vignette"
+
+#: src/pyams_file/zmi/image.py:378
+msgid "Select image"
+msgstr "Sélectionner l'image"
+
+#: src/pyams_file/interfaces/__init__.py:99
msgid "Title"
msgstr "Titre"
-#: src/pyams_file/interfaces/__init__.py:98
+#: src/pyams_file/interfaces/__init__.py:102
msgid "Description"
msgstr "Description"
-#: src/pyams_file/interfaces/__init__.py:101
+#: src/pyams_file/interfaces/__init__.py:105
msgid "Save file as..."
msgstr "Enregistrer sous..."
-#: src/pyams_file/interfaces/__init__.py:102
+#: src/pyams_file/interfaces/__init__.py:106
msgid "Name under which the file will be saved"
msgstr "Nom proposé automatiquement lors de l'enregistrement du fichier"
-#: src/pyams_file/interfaces/__init__.py:105
+#: src/pyams_file/interfaces/__init__.py:109
msgid "Language"
msgstr "Langue"
-#: src/pyams_file/interfaces/__init__.py:106
+#: src/pyams_file/interfaces/__init__.py:110
msgid "File's content language"
msgstr "Langue du contenu du fichier"