{"issue":{"created_at":"2011-12-01T16:27:27Z","state":"open","updated_at":"2011-12-01T19:49:51Z","comments":1,"user":{"gravatar_id":"532ea239a8414ba61b469614dfce6144","id":581227,"url":"https://api.github.com/users/twobraids","avatar_url":"https://secure.gravatar.com/avatar/532ea239a8414ba61b469614dfce6144?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"twobraids"},"body":"This is the implementation of a proposal to add aggregations to configman.   The idea is to add meta entries to the configuration that are aggregations of other entries.  Aggregations are comprised of a name and a function that returns the aggregation value.  The function must accept three parameters and can return any type of object: \r\n\r\n1) a dict that represents the whole configuration (the output of config.get_config())\r\n2) a dict that represents the local config (the namespace in which the aggregation object lives)\r\n3) a list of command line arguments (those that are not associated with command line switches)\r\n\r\nThis concept came from a desire to create factory objects in configuration that require input from more than one configuration option.  See .../demo/trans_generator.py for an example of a really cool database transaction factory using this idea.","assignee":null,"id":2416504,"number":6,"pull_request":{"patch_url":"https://github.com/mozilla/configman/pull/6.patch","html_url":"https://github.com/mozilla/configman/pull/6","diff_url":"https://github.com/mozilla/configman/pull/6.diff"},"labels":[],"title":"Aggregation - comments requested","html_url":"https://github.com/mozilla/configman/issues/6","closed_at":null,"url":"https://api.github.com/repos/mozilla/configman/issues/6","milestone":null},"action":"created","comment":{"created_at":"2011-12-01T19:49:51Z","updated_at":"2011-12-01T19:49:51Z","user":{"gravatar_id":"532ea239a8414ba61b469614dfce6144","id":581227,"url":"https://api.github.com/users/twobraids","avatar_url":"https://secure.gravatar.com/avatar/532ea239a8414ba61b469614dfce6144?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","login":"twobraids"},"body":"I've incorporated a number of suggested changes...","id":2979579,"url":"https://api.github.com/repos/mozilla/configman/issues/comments/2979579"}}