--- a/.installed.cfg Wed Feb 06 09:39:28 2019 +0100
+++ b/.installed.cfg Wed Feb 06 09:45:52 2019 +0100
@@ -61,14 +61,14 @@
script = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/test
[package]
-__buildout_installed__ = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pcreate
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pshell
+__buildout_installed__ = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pserve
+ /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pcreate
+ /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/prequest
/home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/proutes
/home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pdistreport
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/prequest
/home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/ptweens
+ /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pshell
/home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pviews
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin/pserve
__buildout_signature__ = zc.recipe.egg-432f49fde688b538f3c1a5b528796623 zc.buildout-432f49fde688b538f3c1a5b528796623 setuptools-432f49fde688b538f3c1a5b528796623
_b = /home/tflorac/Dropbox/src/PyAMS/pyams_file/bin
_d = /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs
@@ -93,51 +93,3 @@
[buildout]
parts = package i18n pyflakes test
-
-[buildout]
-installed_develop_eggs = /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/pyams-template.egg-link
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/pyams-form.egg-link
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/lingua.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-catalog.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-utils.egg-link
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/pyams-file.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-i18n.egg-link
-
-[buildout]
-parts = i18n pyflakes test package
-
-[buildout]
-parts = pyflakes test package i18n
-
-[buildout]
-parts = test package i18n pyflakes
-
-[buildout]
-parts = package i18n pyflakes test
-
-[buildout]
-installed_develop_eggs = /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/pyams-template.egg-link
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/pyams-form.egg-link
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/lingua.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-catalog.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-utils.egg-link
- /home/tflorac/Dropbox/src/PyAMS/pyams_file/develop-eggs/pyams-file.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-i18n.egg-link
-
-[buildout]
-parts = i18n pyflakes test package
-
-[buildout]
-parts = pyflakes test package i18n
-
-[buildout]
-parts = test package i18n pyflakes
-
-[buildout]
-parts = package i18n pyflakes test
--- a/buildout.cfg Wed Feb 06 09:39:28 2019 +0100
+++ b/buildout.cfg Wed Feb 06 09:45:52 2019 +0100
@@ -69,4 +69,4 @@
eggs = pyams_file [test]
[versions]
-pyams_file = 0.1.27.3
+pyams_file = 0.1.27.4
--- a/docs/HISTORY.txt Wed Feb 06 09:39:28 2019 +0100
+++ b/docs/HISTORY.txt Wed Feb 06 09:45:52 2019 +0100
@@ -1,9 +1,13 @@
History
=======
+0.1.27.4
+--------
+ - handle exception if thumbnails generation if file blob is None
+
0.1.27.3
--------
- - handle exception if thumbnails generation if file blob is None
+ - rebuild...
0.1.27.2
--------
--- a/setup.py Wed Feb 06 09:39:28 2019 +0100
+++ b/setup.py Wed Feb 06 09:45:52 2019 +0100
@@ -22,7 +22,7 @@
README = os.path.join(DOCS, 'README.txt')
HISTORY = os.path.join(DOCS, 'HISTORY.txt')
-version = '0.1.27.3'
+version = '0.1.27.4'
long_description = open(README).read() + '\n\n' + open(HISTORY).read()
tests_require = []
--- a/src/pyams_file.egg-info/PKG-INFO Wed Feb 06 09:39:28 2019 +0100
+++ b/src/pyams_file.egg-info/PKG-INFO Wed Feb 06 09:45:52 2019 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: pyams-file
-Version: 0.1.27.3
+Version: 0.1.27.4
Summary: PyAMS file interfaces and classes
Home-page: http://hg.ztfy.org/pyams/pyams_file
Author: Thierry Florac
@@ -11,9 +11,13 @@
History
=======
+ 0.1.27.4
+ --------
+ - handle exception if thumbnails generation if file blob is None
+
0.1.27.3
--------
- - handle exception if thumbnails generation if file blob is None
+ - rebuild...
0.1.27.2
--------
--- a/src/pyams_file/image.py Wed Feb 06 09:39:28 2019 +0100
+++ b/src/pyams_file/image.py Wed Feb 06 09:45:52 2019 +0100
@@ -128,7 +128,10 @@
else:
return None
# check format
- image = Image.open(self.context.get_blob(mode='r'))
+ blob = self.context.get_blob(mode='r')
+ if blob is None:
+ return None
+ image = Image.open(blob)
if not format:
format = image.format
format = format.upper()