Permalink
Browse files

Merge pull request #6 from gbastien/master

Use obj.Schema() instead of obj.schema in the migration process
  • Loading branch information...
2 parents baf0ad5 + f57656e commit 7d3871fa8cb112e88fa4c17774dd9891bc8b6cb1 @garbas garbas committed Mar 21, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/plone/app/blob/migrations.py
@@ -63,7 +63,7 @@ def fields_map(self):
def migrate_data(self):
fields = self.getFields(self.obj)
for name in fields:
- oldfield = self.obj.schema[name]
+ oldfield = self.obj.Schema()[name]
if hasattr(oldfield, 'removeScales'):
# clean up old image scales
oldfield.removeScales(self.obj)

0 comments on commit 7d3871f

Please sign in to comment.