Permalink
Browse files

Merge branch 'original'

  • Loading branch information...
2 parents 02693f1 + 861aa76 commit cd628c2d05d61d80d7a61756147db03a5706639f @do3cc do3cc committed May 6, 2013
Showing with 10 additions and 3 deletions.
  1. +8 −1 CHANGES.rst
  2. +1 −1 setup.py
  3. +1 −1 src/plone/app/blob/migrations.py
View
@@ -1,13 +1,20 @@
Changelog
=========
-1.5.8 (unreleased)
+1.5.9 (unreleased)
------------------
- Make sure the id is safe before setting the filename as id
[pbauer]
+1.5.8 (2013-04-06)
+------------------
+
+- Use obj.Schema() instead of obj.schema in the migration process.
+ [gbastien]
+
+
1.5.7 (2013-03-05)
------------------
View
@@ -5,7 +5,7 @@
def read(*rnames):
return open(os.path.join(os.path.dirname(__file__), *rnames)).read()
-version = '1.5.8.dev0'
+version = '1.5.9.dev0'
long_description = (
read('README.rst')
@@ -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 cd628c2

Please sign in to comment.