All Versions
6
Latest Version
Avg Release Cycle
68 days
Latest Release
2178 days ago

Changelog History

  • v0.1.8 Changes

    October 30, 2015

    DottedCollection.load_json() now expects valid JSON and doesn't mask any error.

  • v0.1.7 Changes

    October 30, 2015

    Now you can't instantiate a dotted collection with an object that contains non-escaped dictionary keys with dots.

  • v0.1.4 Changes

    August 21, 2015

    Thanks to @ryanwitt

  • v0.1.3

    July 20, 2015
  • v0.1.2 Changes

    January 19, 2015

    Special thanks to Marc Abramowitz.

  • v0.1.1 Changes

    November 24, 2014

    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.