)]}'
{"anchor/app.py":[{"author":{"_account_id":11650,"name":"Tom Cammann","email":"tom.cammann@hpe.com","username":"cammann"},"change_message_id":"8fb79ea775f6969eca09f92759f2e1e1c5cf12ff","unresolved":false,"context_lines":[{"line_number":127,"context_line":"    config_name \u003d \u0027ANCHOR_CONF\u0027"},{"line_number":128,"context_line":"    local_config_path \u003d \u0027config.json\u0027"},{"line_number":129,"context_line":"    user_config_path \u003d os.environ[\u0027HOME\u0027] + \u0027/.config/anchor/config.json\u0027"},{"line_number":130,"context_line":"    sys_config_path \u003d \u0027/etc/anchor/config.json\u0027"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    if \u0027auth\u0027 not in jsonloader.conf.config:"},{"line_number":133,"context_line":"        config_path \u003d \"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"da9b358b_9a724110","line":130,"updated":"2015-04-01 12:10:53.000000000","message":"It would be useful to also pass in the config location from the pecan config as we could then centralise all the config and not change env vars.","commit_id":"e80b2a21cd4e0a752681496a59c4def2a175a921"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"7095c613e70ce6d8231d6cf0d68dca661235e626","unresolved":false,"context_lines":[{"line_number":127,"context_line":"    config_name \u003d \u0027ANCHOR_CONF\u0027"},{"line_number":128,"context_line":"    local_config_path \u003d \u0027config.json\u0027"},{"line_number":129,"context_line":"    user_config_path \u003d os.environ[\u0027HOME\u0027] + \u0027/.config/anchor/config.json\u0027"},{"line_number":130,"context_line":"    sys_config_path \u003d \u0027/etc/anchor/config.json\u0027"},{"line_number":131,"context_line":""},{"line_number":132,"context_line":"    if \u0027auth\u0027 not in jsonloader.conf.config:"},{"line_number":133,"context_line":"        config_path \u003d \"\""}],"source_content_type":"text/x-python","patch_set":1,"id":"da9b358b_daafa928","line":130,"in_reply_to":"da9b358b_9a724110","updated":"2015-04-01 12:13:47.000000000","message":"True, though ideally we would like the pecan config stuff to go away eventually, leaving just the json config. This is why i chose to use an env var, since we are wrapped in pecan and cant easily push a command line arg through either.","commit_id":"e80b2a21cd4e0a752681496a59c4def2a175a921"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"ef57e2bffe2b65e7e041a1c72f1cbcb9f124e80f","unresolved":false,"context_lines":[{"line_number":125,"context_line":"def load_config():"},{"line_number":126,"context_line":"    config_name \u003d \u0027ANCHOR_CONF\u0027"},{"line_number":127,"context_line":"    local_config_path \u003d \u0027config.json\u0027"},{"line_number":128,"context_line":"    user_config_path \u003d os.environ[\u0027HOME\u0027] + \u0027/.config/anchor/config.json\u0027"},{"line_number":129,"context_line":"    sys_config_path \u003d \u0027/etc/anchor/config.json\u0027"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    if \u0027auth\u0027 not in jsonloader.conf.config:"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_0ec72546","line":128,"updated":"2015-04-08 17:51:37.000000000","message":"Might want to use os.path.join which automatically uses correct file separators (future proof it).","commit_id":"832ec1387418808a152fdd4ab7d740e38aea05a6"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"95cdfb336639aa16460b1cc18a266b9d315c4d05","unresolved":false,"context_lines":[{"line_number":125,"context_line":"def load_config():"},{"line_number":126,"context_line":"    config_name \u003d \u0027ANCHOR_CONF\u0027"},{"line_number":127,"context_line":"    local_config_path \u003d \u0027config.json\u0027"},{"line_number":128,"context_line":"    user_config_path \u003d os.environ[\u0027HOME\u0027] + \u0027/.config/anchor/config.json\u0027"},{"line_number":129,"context_line":"    sys_config_path \u003d \u0027/etc/anchor/config.json\u0027"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    if \u0027auth\u0027 not in jsonloader.conf.config:"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_d0e98fb8","line":128,"in_reply_to":"9aa53dc9_0ec72546","updated":"2015-04-10 13:39:48.000000000","message":"We don\u0027t support windows, and  it would require changing more than just the delimiters to sensibly handle config paths for that platform. I think using \u0027/\u0027 is fine here personally.","commit_id":"832ec1387418808a152fdd4ab7d740e38aea05a6"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"943325c55dbc133fb022c95c6cf55f7d51dcf048","unresolved":false,"context_lines":[{"line_number":125,"context_line":"def load_config():"},{"line_number":126,"context_line":"    config_name \u003d \u0027ANCHOR_CONF\u0027"},{"line_number":127,"context_line":"    local_config_path \u003d \u0027config.json\u0027"},{"line_number":128,"context_line":"    user_config_path \u003d os.environ[\u0027HOME\u0027] + \u0027/.config/anchor/config.json\u0027"},{"line_number":129,"context_line":"    sys_config_path \u003d \u0027/etc/anchor/config.json\u0027"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    if \u0027auth\u0027 not in jsonloader.conf.config:"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_2a760770","line":128,"in_reply_to":"9aa53dc9_d0e98fb8","updated":"2015-04-10 14:05:56.000000000","message":"Agreed, supporting windows is not necessary, but os.path.join is commonly used in favor of \u0027/\u0027 throughout OpenStack projects.\n\nhttps://github.com/openstack/keystone/blob/master/bin/keystone-all#L23\n\nor just search a project on github for os.path.join","commit_id":"832ec1387418808a152fdd4ab7d740e38aea05a6"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"ef57e2bffe2b65e7e041a1c72f1cbcb9f124e80f","unresolved":false,"context_lines":[{"line_number":126,"context_line":"    config_name \u003d \u0027ANCHOR_CONF\u0027"},{"line_number":127,"context_line":"    local_config_path \u003d \u0027config.json\u0027"},{"line_number":128,"context_line":"    user_config_path \u003d os.environ[\u0027HOME\u0027] + \u0027/.config/anchor/config.json\u0027"},{"line_number":129,"context_line":"    sys_config_path \u003d \u0027/etc/anchor/config.json\u0027"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    if \u0027auth\u0027 not in jsonloader.conf.config:"},{"line_number":132,"context_line":"        config_path \u003d \"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_2ecc2969","line":129,"updated":"2015-04-08 17:51:37.000000000","message":"Might want to use os.path.join which automatically uses correct file separators (future proof it).","commit_id":"832ec1387418808a152fdd4ab7d740e38aea05a6"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"95cdfb336639aa16460b1cc18a266b9d315c4d05","unresolved":false,"context_lines":[{"line_number":126,"context_line":"    config_name \u003d \u0027ANCHOR_CONF\u0027"},{"line_number":127,"context_line":"    local_config_path \u003d \u0027config.json\u0027"},{"line_number":128,"context_line":"    user_config_path \u003d os.environ[\u0027HOME\u0027] + \u0027/.config/anchor/config.json\u0027"},{"line_number":129,"context_line":"    sys_config_path \u003d \u0027/etc/anchor/config.json\u0027"},{"line_number":130,"context_line":""},{"line_number":131,"context_line":"    if \u0027auth\u0027 not in jsonloader.conf.config:"},{"line_number":132,"context_line":"        config_path \u003d \"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_f0e493e0","line":129,"in_reply_to":"9aa53dc9_2ecc2969","updated":"2015-04-10 13:39:48.000000000","message":"see above","commit_id":"832ec1387418808a152fdd4ab7d740e38aea05a6"}],"anchor/jsonloader.py":[{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"ef57e2bffe2b65e7e041a1c72f1cbcb9f124e80f","unresolved":false,"context_lines":[{"line_number":43,"context_line":"            raise"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        # JSON parser does its own exception handling"},{"line_number":46,"context_line":"        self._config \u003d json.load(f)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def load_str_data(self, data):"},{"line_number":49,"context_line":"        \u0027\u0027\u0027Load a config from string data.\u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_ae1399b7","line":46,"updated":"2015-04-08 17:51:37.000000000","message":"Shouldn\u0027t the file object, f, be closed also?","commit_id":"832ec1387418808a152fdd4ab7d740e38aea05a6"},{"author":{"_account_id":11716,"name":"Tim Kelsey","email":"timothy.kelsey@uk.ibm.com","username":"tkelsey"},"change_message_id":"95cdfb336639aa16460b1cc18a266b9d315c4d05","unresolved":false,"context_lines":[{"line_number":43,"context_line":"            raise"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        # JSON parser does its own exception handling"},{"line_number":46,"context_line":"        self._config \u003d json.load(f)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def load_str_data(self, data):"},{"line_number":49,"context_line":"        \u0027\u0027\u0027Load a config from string data.\u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_b0cccb6a","line":46,"in_reply_to":"9aa53dc9_ae1399b7","updated":"2015-04-10 13:39:48.000000000","message":"it will be closed by python when it goes out of scope","commit_id":"832ec1387418808a152fdd4ab7d740e38aea05a6"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"943325c55dbc133fb022c95c6cf55f7d51dcf048","unresolved":false,"context_lines":[{"line_number":43,"context_line":"            raise"},{"line_number":44,"context_line":""},{"line_number":45,"context_line":"        # JSON parser does its own exception handling"},{"line_number":46,"context_line":"        self._config \u003d json.load(f)"},{"line_number":47,"context_line":""},{"line_number":48,"context_line":"    def load_str_data(self, data):"},{"line_number":49,"context_line":"        \u0027\u0027\u0027Load a config from string data.\u0027\u0027\u0027"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa53dc9_8ad99359","line":46,"in_reply_to":"9aa53dc9_b0cccb6a","updated":"2015-04-10 14:05:56.000000000","message":"Although it should, its generally better to explicitly close it or use \u0027with\u0027 context.","commit_id":"832ec1387418808a152fdd4ab7d740e38aea05a6"}]}
