{"action":"created","issue":{"url":"https://api.github.com/repos/morepath/morepath/issues/430","repository_url":"https://api.github.com/repos/morepath/morepath","labels_url":"https://api.github.com/repos/morepath/morepath/issues/430/labels{/name}","comments_url":"https://api.github.com/repos/morepath/morepath/issues/430/comments","events_url":"https://api.github.com/repos/morepath/morepath/issues/430/events","html_url":"https://github.com/morepath/morepath/issues/430","id":151618427,"number":430,"title":"settings_sections directive","user":{"login":"faassen","id":327472,"avatar_url":"https://avatars.githubusercontent.com/u/327472?v=3","gravatar_id":"","url":"https://api.github.com/users/faassen","html_url":"https://github.com/faassen","followers_url":"https://api.github.com/users/faassen/followers","following_url":"https://api.github.com/users/faassen/following{/other_user}","gists_url":"https://api.github.com/users/faassen/gists{/gist_id}","starred_url":"https://api.github.com/users/faassen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faassen/subscriptions","organizations_url":"https://api.github.com/users/faassen/orgs","repos_url":"https://api.github.com/users/faassen/repos","events_url":"https://api.github.com/users/faassen/events{/privacy}","received_events_url":"https://api.github.com/users/faassen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/morepath/morepath/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/morepath/morepath/labels/help%20wanted","name":"help wanted","color":"fbca04"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/morepath/morepath/milestones/12","html_url":"https://github.com/morepath/morepath/milestones/1.0","labels_url":"https://api.github.com/repos/morepath/morepath/milestones/12/labels","id":1393968,"number":12,"title":"1.0","description":"Morepath 1.0. Is there anything in particular we want to do codewise to have it? Or is it more that we want to improve the web presence and documentation?\r\n","creator":{"login":"faassen","id":327472,"avatar_url":"https://avatars.githubusercontent.com/u/327472?v=3","gravatar_id":"","url":"https://api.github.com/users/faassen","html_url":"https://github.com/faassen","followers_url":"https://api.github.com/users/faassen/followers","following_url":"https://api.github.com/users/faassen/following{/other_user}","gists_url":"https://api.github.com/users/faassen/gists{/gist_id}","starred_url":"https://api.github.com/users/faassen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/faassen/subscriptions","organizations_url":"https://api.github.com/users/faassen/orgs","repos_url":"https://api.github.com/users/faassen/repos","events_url":"https://api.github.com/users/faassen/events{/privacy}","received_events_url":"https://api.github.com/users/faassen/received_events","type":"User","site_admin":false},"open_issues":6,"closed_issues":3,"state":"open","created_at":"2015-11-04T16:42:46Z","updated_at":"2016-05-10T13:29:00Z","due_on":null,"closed_at":null},"comments":17,"created_at":"2016-04-28T11:34:31Z","updated_at":"2016-05-26T15:40:01Z","closed_at":null,"body":"There's the use case where the developer wants to read settings from a file. Currently you could use ``setting`` or ``setting_section`` to parse a file and introduce settings. But what if you have multiple setting sections in a file? Reloading and reparsing the settings file isn't ideal.\r\n\r\nWe could introduce a ``setting_sections`` directive, better name perhaps ``load_setting_sections``, which lets you return multiple setting section dictionaries in a list. These get inserted into the settings object. They're overridable as before, as this is implemented using a composite action on top of ``setting_section``.\r\n\r\nIn ``inject_setting_sections`` you could inspect the command line args or environment to determine the settings file, and then load it and parse it into a list of setting section dictionaries. This gives the developer a canonical place to do this. We should document this as the regular pattern giving an example that uses configparser. Using this directive you can even develop a framework app base class that has some default behavior baked in.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/morepath/morepath/issues/comments/221908918","html_url":"https://github.com/morepath/morepath/issues/430#issuecomment-221908918","issue_url":"https://api.github.com/repos/morepath/morepath/issues/430","id":221908918,"user":{"login":"henri-hulski","id":7619824,"avatar_url":"https://avatars.githubusercontent.com/u/7619824?v=3","gravatar_id":"","url":"https://api.github.com/users/henri-hulski","html_url":"https://github.com/henri-hulski","followers_url":"https://api.github.com/users/henri-hulski/followers","following_url":"https://api.github.com/users/henri-hulski/following{/other_user}","gists_url":"https://api.github.com/users/henri-hulski/gists{/gist_id}","starred_url":"https://api.github.com/users/henri-hulski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/henri-hulski/subscriptions","organizations_url":"https://api.github.com/users/henri-hulski/orgs","repos_url":"https://api.github.com/users/henri-hulski/repos","events_url":"https://api.github.com/users/henri-hulski/events{/privacy}","received_events_url":"https://api.github.com/users/henri-hulski/received_events","type":"User","site_admin":false},"created_at":"2016-05-26T15:40:01Z","updated_at":"2016-05-26T15:40:01Z","body":"@faassen I can have a look. "}}
{"actor":{"display_login":"henri-hulski"}}