force transformation if scale variant is not found
git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@3654 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
parent
c4b95f8c45
commit
ff63c4bbd7
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
||||||
#
|
#
|
||||||
# Copyright (c) 2008 Helmut Merz helmutm@cy55.de
|
# Copyright (c) 2009 Helmut Merz helmutm@cy55.de
|
||||||
#
|
#
|
||||||
# This program is free software; you can redistribute it and/or modify
|
# This program is free software; you can redistribute it and/or modify
|
||||||
# it under the terms of the GNU General Public License as published by
|
# it under the terms of the GNU General Public License as published by
|
||||||
|
@ -72,7 +72,8 @@ class MediaAssetFile(object):
|
||||||
if not os.path.exists(path):
|
if not os.path.exists(path):
|
||||||
getLogger('cybertools.media.asset.MediaAssetFile').warn(
|
getLogger('cybertools.media.asset.MediaAssetFile').warn(
|
||||||
'Media asset directory %r not found.' % path)
|
'Media asset directory %r not found.' % path)
|
||||||
return self.getOriginalData()
|
self.transform()
|
||||||
|
#return self.getOriginalData()
|
||||||
f = open(path, 'rb')
|
f = open(path, 'rb')
|
||||||
data =f.read()
|
data =f.read()
|
||||||
f.close()
|
f.close()
|
||||||
|
|
Loading…
Add table
Reference in a new issue