Commit cd778eec authored by root's avatar root

production changes

parent a62a8f40
...@@ -319,7 +319,7 @@ class Image(TextConvertableMixin, File, OFSImage): ...@@ -319,7 +319,7 @@ class Image(TextConvertableMixin, File, OFSImage):
def _resize(self, quality, width, height, format, resolution, frame): def _resize(self, quality, width, height, format, resolution, frame):
"""Resize and resample photo.""" """Resize and resample photo."""
parameter_list = ['convert', '-colorspace', 'sRGB', '-depth', '8', parameter_list = ['/usr/bin/timeout', '10', 'convert', '-colorspace', 'sRGB', '-depth', '8',
'-quality', str(quality), '-quality', str(quality),
'-geometry', '%sx%s' % (width, height)] '-geometry', '%sx%s' % (width, height)]
if format not in VALID_TRANSPARENT_IMAGE_FORMAT_LIST: if format not in VALID_TRANSPARENT_IMAGE_FORMAT_LIST:
......
...@@ -125,6 +125,6 @@ except ImportError: ...@@ -125,6 +125,6 @@ except ImportError:
class pyPdfGeneric: class pyPdfGeneric:
NameObject = type('NameObject', (str, ), {'__module__': 'pyPdf.Generic'}) NameObject = type('NameObject', (str, ), {'__module__': 'pyPdf.Generic'})
sys.modules['pyPdf.Generic'] = pyPdfGeneric sys.modules['pyPdf.generic'] = pyPdfGeneric
sys.modules['pyPdf'] = pyPdfGeneric sys.modules['pyPdf'] = pyPdfGeneric
...@@ -1018,6 +1018,7 @@ class Catalog(Folder, ...@@ -1018,6 +1018,7 @@ class Catalog(Folder,
# It could also have a performance impact for traversals to objects in # It could also have a performance impact for traversals to objects in
# the acquisition context on Zope 2.12 even when it didn't raise a weird # the acquisition context on Zope 2.12 even when it didn't raise a weird
# error. # error.
if not uid: return None
method = getattr(self, self.sql_getitem_by_uid) method = getattr(self, self.sql_getitem_by_uid)
search_result = method(uid = uid) search_result = method(uid = uid)
if len(search_result) > 0: if len(search_result) > 0:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment