DottedDict v0.1.1 Release Notes

Release Date: 2014-11-24 // over 9 years ago
  • When trying to load a leaf value (a string) recursively you got a ValueError. This release fixes it.

    Suppose you have an obj variable that is an instance of DottedCollection and a set of config paths and values in a settings collection:

    for setting in settings.all(): obj[setting.parameter] = DottedCollection.load\_json(setting.value)
    

    That would fail if setting.value is an instance of basestring.

    But if you do:

    obj['source.body'] = DottedCollection.load\_json("something") obj['source.body.more'] = DottedCollection.load\_json('{"something": "more"}')
    

    you will get an error because obj['source.body'] is actually an instance of basestring.