Skip to content

Commit

Permalink
[FIX] product_multi_image: PEP8
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrobaeza committed Jun 1, 2015
1 parent fb8a91c commit b48ad34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 2 additions & 3 deletions product_multi_image/models/product_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,11 @@ def _get_image_sizes(self):
self.image_small = vals['image_small']
self.image_medium = vals['image_medium']
except:
print "Error procesando imagen de %s" % self.name
pass

@api.multi
def _check_filestore(self):
"""check if the filestore is created, and do it otherwise.
"""
"""check if the filestore is created, and do it otherwise."""
for product_image in self:
dir_path = os.path.dirname(product_image.path)
try:
Expand Down
2 changes: 0 additions & 2 deletions product_multi_image/models/product_product.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
##############################################################################
import os
import shutil
import logging
from openerp import models, fields, api, _

Expand Down

0 comments on commit b48ad34

Please sign in to comment.