Commits

Jean-Tiare Le Bigot committed ee74779

start 1.8.x series; revert #17

Comments (0)

Files changed (5)

+========================
+DynamoDBMapper 1.8.0.dev
+========================
+
+This section documents all user visible changes included between DynamoDBMapper
+versions 1.8.0 and versions 1.7.1
+
+Changes
+-------
+
+- revert the fix for bug #17 (regressions).
+
+Upgrade
+-------
+
+- all functions relying on type coercion in ``__init__`` will now need to it themselves
+
 ====================
 DynamoDBMapper 1.7.1
 ====================
 # built documents.
 #
 # The short X.Y version.
-version = '1.7'
+version = '1.8'
 # The full version, including alpha/beta/rc tags.
-release = '1.7.1'
+release = '1.8.0.dev'
 
 # The language for content autogenerated by Sphinx. Refer to documentation
 # for a list of supported languages.

dynamodb_mapper/model.py

                 default = kwargs.get(name)
             else:
                 default = defaults[name] if name in defaults else None
-            value = _dynamodb_to_python(type_, default) # just in case, ensure types. help migration from 'from_dict'
-            value = _get_default_value(type_, value, name=name)
+            value = _get_default_value(type_, default, name=name)
             setattr(self, name, value)
 
         # instanciate the migrator only once per model *after* initialization

dynamodb_mapper/tests/test_model.py

         self.assertEqual(1, d.id)
         self.assertEqual(u"Knee-deep in the Dead", d.name)
 
-    def test_init_from_unicode_kwargs(self):
-        # regression test for bug #17
-        kwargs = {
-            u'id': u'1',
-            u'name': u'Knee-deep in the Dead',
-        }
-
-        d = DoomEpisode(**kwargs)
-        self.assertEqual({}, d._raw_data)
-        self.assertEqual(1, d.id)
-        self.assertEqual(u"Knee-deep in the Dead", d.name)
-
     def test_build_from_dict(self):
         #FIXME: can it be removed as this feature is implicitly tested elsewhere ?
         d_dict = {"id": 1, "name": "Knee-deep in the Dead"}
 [metadata]
 name = dynamodb-mapper
-version = 1.7.1
+version = 1.8.0.dev
 summary = Object mapper for Amazon DynamoDB
 description-file = README.rst
 author = Max Noel