)]}'
{"openstack_dashboard/api/sahara.py":[{"author":{"_account_id":11997,"name":"Lennart Regebro","email":"lregebro@redhat.com","username":"lregebro"},"change_message_id":"8116d19dd90b48211ebe5c94fedce9cc2791fbcf","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        name, plugin_name, hadoop_version, flavor_id, description,"},{"line_number":103,"context_line":"        volumes_per_node, volumes_size, node_processes, node_configs,"},{"line_number":104,"context_line":"        floating_ip_pool, security_groups, auto_security_group,"},{"line_number":105,"context_line":"        availability_zone, volumes_availability_zone)"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"def nodegroup_template_list(request):"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8c0949_45bb0572","line":105,"updated":"2014-11-06 14:14:06.000000000","message":"The previous formatting was clearer.","commit_id":"9a419f41f5e033864709431ca6c2b7cf92bb1dc2"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"8d472fe87f740110f2c0ed40f27414de4452200e","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        name, plugin_name, hadoop_version, flavor_id, description,"},{"line_number":103,"context_line":"        volumes_per_node, volumes_size, node_processes, node_configs,"},{"line_number":104,"context_line":"        floating_ip_pool, security_groups, auto_security_group,"},{"line_number":105,"context_line":"        availability_zone, volumes_availability_zone)"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"def nodegroup_template_list(request):"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8c0949_1b9b2068","line":105,"in_reply_to":"7a8c0949_45bb0572","updated":"2014-11-06 15:15:51.000000000","message":"It was indeed, but \u0027volumes_availability_zone\u0027 is too long and couldn\u0027t fit using the previous formatting.","commit_id":"9a419f41f5e033864709431ca6c2b7cf92bb1dc2"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"bb470d2b23f5d2e5ded5606b63d8eb265e6d3c99","unresolved":false,"context_lines":[{"line_number":102,"context_line":"        name, plugin_name, hadoop_version, flavor_id, description,"},{"line_number":103,"context_line":"        volumes_per_node, volumes_size, node_processes, node_configs,"},{"line_number":104,"context_line":"        floating_ip_pool, security_groups, auto_security_group,"},{"line_number":105,"context_line":"        availability_zone, volumes_availability_zone)"},{"line_number":106,"context_line":""},{"line_number":107,"context_line":""},{"line_number":108,"context_line":"def nodegroup_template_list(request):"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_09650aae","line":105,"updated":"2014-11-26 13:42:02.000000000","message":"I would prefer these be on separate lines as before, this is much less readable.","commit_id":"3c26273005f7e3907e1a4230d2726798049ac3ef"},{"author":{"_account_id":12826,"name":"Rob Cresswell","display_name":"robcresswell","email":"robert.cresswell@outlook.com","username":"rob-cresswell"},"change_message_id":"bb470d2b23f5d2e5ded5606b63d8eb265e6d3c99","unresolved":false,"context_lines":[{"line_number":133,"context_line":"        ngt_id, name, plugin_name, hadoop_version, flavor_id, description,"},{"line_number":134,"context_line":"        volumes_per_node, volumes_size, node_processes, node_configs,"},{"line_number":135,"context_line":"        floating_ip_pool, security_groups, auto_security_group,"},{"line_number":136,"context_line":"        availability_zone, volumes_availability_zone)"},{"line_number":137,"context_line":""},{"line_number":138,"context_line":""},{"line_number":139,"context_line":"def cluster_template_create(request, name, plugin_name, hadoop_version,"}],"source_content_type":"text/x-python","patch_set":5,"id":"5a890539_89101a01","line":136,"updated":"2014-11-26 13:42:02.000000000","message":"ditto","commit_id":"3c26273005f7e3907e1a4230d2726798049ac3ef"}],"openstack_dashboard/dashboards/project/data_processing/nodegroup_templates/templates/data_processing.nodegroup_templates/_details.html":[{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"1b47b447ce56f5d240777d0086b6728d6ccf741c","unresolved":false,"context_lines":[{"line_number":2,"context_line":"{% load url from future %}"},{"line_number":3,"context_line":"\u003ch3\u003e{% trans \"Template Overview\" %}\u003c/h3\u003e"},{"line_number":4,"context_line":"\u003cdiv class\u003d\"status row detail\"\u003e"},{"line_number":5,"context_line":"    \u003cdl class\u003d\"dl-horizontal\"\u003e"},{"line_number":6,"context_line":"        \u003cdt\u003e{% trans \"Name\" %}\u003c/dt\u003e"},{"line_number":7,"context_line":"        \u003cdd\u003e{{ template.name }}\u003c/dd\u003e"},{"line_number":8,"context_line":"        \u003cdt\u003e{% trans \"ID\" %}\u003c/dt\u003e"}],"source_content_type":"text/html","patch_set":11,"id":"fa81d914_3edc7612","side":"PARENT","line":5,"updated":"2015-01-29 02:27:37.000000000","message":"was this accidentally removed?","commit_id":"3d9d3df62da2f9132c1330f565b9fe18b2ee7763"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"6382feb00684a814c68ceb924493662fd41b194d","unresolved":false,"context_lines":[{"line_number":2,"context_line":"{% load url from future %}"},{"line_number":3,"context_line":"\u003ch3\u003e{% trans \"Template Overview\" %}\u003c/h3\u003e"},{"line_number":4,"context_line":"\u003cdiv class\u003d\"status row detail\"\u003e"},{"line_number":5,"context_line":"    \u003cdl class\u003d\"dl-horizontal\"\u003e"},{"line_number":6,"context_line":"        \u003cdt\u003e{% trans \"Name\" %}\u003c/dt\u003e"},{"line_number":7,"context_line":"        \u003cdd\u003e{{ template.name }}\u003c/dd\u003e"},{"line_number":8,"context_line":"        \u003cdt\u003e{% trans \"ID\" %}\u003c/dt\u003e"}],"source_content_type":"text/html","patch_set":11,"id":"fa81d914_55366053","side":"PARENT","line":5,"in_reply_to":"fa81d914_3edc7612","updated":"2015-01-29 08:22:13.000000000","message":"Yes, this is a rebasing accident!\n\nThanks for pointing this out.","commit_id":"3d9d3df62da2f9132c1330f565b9fe18b2ee7763"}],"openstack_dashboard/dashboards/project/data_processing/nodegroup_templates/tests.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"14523bb673badcc9586451b636c6dfb736d654be","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":12,"id":"da86d52c_57e22fd6","updated":"2015-01-31 12:29:56.000000000","message":"Could you add UT corresponding to this patch?","commit_id":"4a26f7e48a92db199caa407e5887fa2b4eddc146"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"da68dd06ad62f9a67400d23f29e9d56036db9d7c","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":12,"id":"da86d52c_8138493e","in_reply_to":"da86d52c_44209ff7","updated":"2015-02-04 18:49:30.000000000","message":"What I thought is that just to post \"availability zone\" name at L.169. Without this we cannot check the AZ name posted to Horizon is sent to Sahara API.\n\nHorizon unit test strategy and test coverage is not good, so we may not test various combination of parameters for simple case, but I think it is better to post non-None AZ name in the test at least.","commit_id":"4a26f7e48a92db199caa407e5887fa2b4eddc146"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"2a2bff951ec1158541af56286b186a06517d5ef0","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":12,"id":"da86d52c_44209ff7","in_reply_to":"da86d52c_57e22fd6","updated":"2015-02-02 11:06:27.000000000","message":"Why not, but I don\u0027t see what kind of UT can be added here. It\u0027s not a new feature, but adding a field in a template, so I add support for this field in the feature test case. For instance here is another patch that add such a field: https://github.com/openstack/horizon/commit/c7010c14d3e8357ddb7f84922ba16275ad52a928","commit_id":"4a26f7e48a92db199caa407e5887fa2b4eddc146"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"0928fc65af27acf6ef04c866f476b56f7f2b2e3a","unresolved":false,"context_lines":[],"source_content_type":"","patch_set":12,"id":"da86d52c_6d1ee460","in_reply_to":"da86d52c_8138493e","updated":"2015-02-04 20:14:32.000000000","message":"Thanks for this comment Akihiro.\n\nI agree that Horizon test coverage could be improved, but I believe this should be done in a separate CR, along with Nova availability zones and other parameters (volumes_size, floating_ip_pool, etc.)","commit_id":"4a26f7e48a92db199caa407e5887fa2b4eddc146"}],"openstack_dashboard/dashboards/project/data_processing/nodegroup_templates/workflows/create.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"14523bb673badcc9586451b636c6dfb736d654be","unresolved":false,"context_lines":[{"line_number":162,"context_line":"                        if az.zoneState[\u0027available\u0027]])"},{"line_number":163,"context_line":"        return az_list"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    def populate_volumes_availability_zone_choices(self, request, context):"},{"line_number":166,"context_line":"        az_list \u003d [(None, _(\u0027No availability zone specified\u0027))]"},{"line_number":167,"context_line":"        az_list.extend([(az.zoneName, az.zoneName)"},{"line_number":168,"context_line":"                        for az in cinder_utils.availability_zone_list(request)"}],"source_content_type":"text/x-python","patch_set":12,"id":"da86d52c_17c1972e","line":165,"updated":"2015-01-31 12:29:56.000000000","message":"If there is only one volume AZ, it is better to choose it by default. It is done in \"Launch Instance\" form. I believe it brings us a better consistency and a better user experience. It can be done in this patch or in the folow-up patch.","commit_id":"4a26f7e48a92db199caa407e5887fa2b4eddc146"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"2a2bff951ec1158541af56286b186a06517d5ef0","unresolved":false,"context_lines":[{"line_number":162,"context_line":"                        if az.zoneState[\u0027available\u0027]])"},{"line_number":163,"context_line":"        return az_list"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    def populate_volumes_availability_zone_choices(self, request, context):"},{"line_number":166,"context_line":"        az_list \u003d [(None, _(\u0027No availability zone specified\u0027))]"},{"line_number":167,"context_line":"        az_list.extend([(az.zoneName, az.zoneName)"},{"line_number":168,"context_line":"                        for az in cinder_utils.availability_zone_list(request)"}],"source_content_type":"text/x-python","patch_set":12,"id":"da86d52c_64ee83ee","line":165,"in_reply_to":"da86d52c_17c1972e","updated":"2015-02-02 11:06:27.000000000","message":"I understand what you mean, but this is debatable (e.g. one can argue that there should be a way to query sahara without this field, because it is possible in command-line).\n\nBecause of this, and also because there is already \"No availability zone specified\" for Nova AZ (line 159), I\u0027d rather do it in another patch.","commit_id":"4a26f7e48a92db199caa407e5887fa2b4eddc146"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"da68dd06ad62f9a67400d23f29e9d56036db9d7c","unresolved":false,"context_lines":[{"line_number":162,"context_line":"                        if az.zoneState[\u0027available\u0027]])"},{"line_number":163,"context_line":"        return az_list"},{"line_number":164,"context_line":""},{"line_number":165,"context_line":"    def populate_volumes_availability_zone_choices(self, request, context):"},{"line_number":166,"context_line":"        az_list \u003d [(None, _(\u0027No availability zone specified\u0027))]"},{"line_number":167,"context_line":"        az_list.extend([(az.zoneName, az.zoneName)"},{"line_number":168,"context_line":"                        for az in cinder_utils.availability_zone_list(request)"}],"source_content_type":"text/x-python","patch_set":12,"id":"da86d52c_61243560","line":165,"in_reply_to":"da86d52c_64ee83ee","updated":"2015-02-04 18:49:30.000000000","message":"Thanks for the clarification. I got it and it sounds reasonable.","commit_id":"4a26f7e48a92db199caa407e5887fa2b4eddc146"}],"openstack_dashboard/dashboards/project/volumes/utils.py":[{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"d886a55e819833985b89f00bc0861bf785739039","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- coding: utf-8 -*-"},{"line_number":2,"context_line":"# Copyright (c) 2014 Adrien Vergé \u003cadrien.verge@numergy.com\u003e"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa201ad_58d38ad4","line":1,"updated":"2014-10-17 01:53:11.000000000","message":"nit: above line unnecessary?\n\nnot sure protocol... but company name? e.g. https://github.com/openstack/horizon/blob/master/openstack_dashboard/dashboards/project/firewalls/tables.py#L1","commit_id":"abfcd19a6633ed3bc90622761905b780cf0fc37d"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"6964cef9b5df29f38ab41cfbf7181e3f4ca6abd4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- coding: utf-8 -*-"},{"line_number":2,"context_line":"# Copyright (c) 2014 Adrien Vergé \u003cadrien.verge@numergy.com\u003e"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa7fdbe_c0d6daf0","line":1,"in_reply_to":"9aa7fdbe_f2482b89","updated":"2014-10-23 21:25:26.000000000","message":"All this kind of lines? Are you talking about:\n\n# emacs: -*- mode: python -*-\n\nor\n\n# vi: set ft\u003dpython sts\u003d4 ts\u003d4 sw\u003d4?\n\nPEP0263 (source file encoding) is completely different, moreover it\u0027s *needed* to interpret non-ascii files. Any file can contain unicode characters, and Python supports utf-8. So why not torelate it? In other Openstack projects, this header keeps being merged regularly.\n\nhttp://docs.openstack.org/developer/hacking/\n\nhttps://docs.python.org/2/howto/unicode.html#unicode-literals-in-python-source-code","commit_id":"abfcd19a6633ed3bc90622761905b780cf0fc37d"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"04d00a1658b82384c741abce68f7e4722e55676a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- coding: utf-8 -*-"},{"line_number":2,"context_line":"# Copyright (c) 2014 Adrien Vergé \u003cadrien.verge@numergy.com\u003e"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa7fdbe_f2482b89","line":1,"in_reply_to":"baa201ad_0466fb29","updated":"2014-10-23 06:18:00.000000000","message":"In OpenStack projects, this header line was used but after the discussion all of this kind of lines were removed.","commit_id":"abfcd19a6633ed3bc90622761905b780cf0fc37d"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"c16bd5aed7ee2646385e622f1e8d45310d85ed0a","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- coding: utf-8 -*-"},{"line_number":2,"context_line":"# Copyright (c) 2014 Adrien Vergé \u003cadrien.verge@numergy.com\u003e"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa201ad_0466fb29","line":1,"in_reply_to":"baa201ad_58d38ad4","updated":"2014-10-17 07:29:53.000000000","message":"This remark comes up quite often in Openstack projects :)\n\nThis header makes unicode files readable by the Python 2 interpreter (otherwise it fails). Accents and special chars and can appear in names, but also in English words. It is a PEP standard [1] and should be used whenever needed in Python files [2]. It is also already present in dozens of files across Openstack.\n\n[1]: http://legacy.python.org/dev/peps/pep-0263/\n[2]: https://docs.python.org/2/howto/unicode.html#unicode-literals-in-python-source-code","commit_id":"abfcd19a6633ed3bc90622761905b780cf0fc37d"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"e59d8acf5d31613d1ceabe684cd3ec60305c8a10","unresolved":false,"context_lines":[{"line_number":26,"context_line":"        return api.cinder.availability_zone_list(request)"},{"line_number":27,"context_line":"    except Exception:"},{"line_number":28,"context_line":"        exceptions.handle(request,"},{"line_number":29,"context_line":"                          _(\u0027Unable to retrieve Cinder availability zones.\u0027))"},{"line_number":30,"context_line":"        return []"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa201ad_44348349","line":29,"updated":"2014-10-17 07:16:46.000000000","message":"Use \"volume\" instead of \"cinder\" for message displayed to user","commit_id":"abfcd19a6633ed3bc90622761905b780cf0fc37d"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"c16bd5aed7ee2646385e622f1e8d45310d85ed0a","unresolved":false,"context_lines":[{"line_number":26,"context_line":"        return api.cinder.availability_zone_list(request)"},{"line_number":27,"context_line":"    except Exception:"},{"line_number":28,"context_line":"        exceptions.handle(request,"},{"line_number":29,"context_line":"                          _(\u0027Unable to retrieve Cinder availability zones.\u0027))"},{"line_number":30,"context_line":"        return []"}],"source_content_type":"text/x-python","patch_set":2,"id":"baa201ad_e47ad7b8","line":29,"in_reply_to":"baa201ad_44348349","updated":"2014-10-17 07:29:53.000000000","message":"I thought availability zones where specific to the *Cinder* API, which is a superset of the volume API. I mean, \"volume availability zones\" don\u0027t necessarily exist, it depends on the driver (Cinder or any other software implementing the volume API).\n\nAm I wrong?","commit_id":"abfcd19a6633ed3bc90622761905b780cf0fc37d"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"04d00a1658b82384c741abce68f7e4722e55676a","unresolved":false,"context_lines":[{"line_number":26,"context_line":"        return api.cinder.availability_zone_list(request)"},{"line_number":27,"context_line":"    except Exception:"},{"line_number":28,"context_line":"        exceptions.handle(request,"},{"line_number":29,"context_line":"                          _(\u0027Unable to retrieve Cinder availability zones.\u0027))"},{"line_number":30,"context_line":"        return []"}],"source_content_type":"text/x-python","patch_set":2,"id":"9aa7fdbe_72543b21","line":29,"in_reply_to":"baa201ad_e47ad7b8","updated":"2014-10-23 06:18:00.000000000","message":"We consistently use functional names like compute/volume/networking rather than code names like nova, cinder, neutron in the Dashboard. This is the background of the original comment.","commit_id":"abfcd19a6633ed3bc90622761905b780cf0fc37d"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"0a67118234b6b933379b5d186c10423a4587b0e4","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- coding: utf-8 -*-"},{"line_number":2,"context_line":"# Copyright (c) 2014 Adrien Vergé \u003cadrien.verge@numergy.com\u003e"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa7fdbe_f2166b54","line":1,"updated":"2014-10-23 06:21:45.000000000","message":"As we commented in the previous patchset , this line needs to be removed.","commit_id":"da7aeb4025f12f383edd2f4e124bc3e6dd1c3062"},{"author":{"_account_id":6610,"name":"Zhenguo Niu","email":"Niu.ZGlinux@gmail.com","username":"niu-zglinux"},"change_message_id":"a5725db4e748040b2007ea4084cfbeb4135ed276","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"def availability_zone_list(request):"},{"line_number":24,"context_line":"    \"\"\"Utility method to retrieve a list of availability zones.\"\"\""},{"line_number":25,"context_line":"    try:"},{"line_number":26,"context_line":"        return api.cinder.availability_zone_list(request)"},{"line_number":27,"context_line":"    except Exception:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa7fdbe_885fb0e4","line":24,"updated":"2014-10-23 07:35:59.000000000","message":"Please check whether the cinder az extension is supported before call az list api.","commit_id":"da7aeb4025f12f383edd2f4e124bc3e6dd1c3062"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"4bbd390be88e46a803b6ab2483846ac4de68ad83","unresolved":false,"context_lines":[{"line_number":21,"context_line":""},{"line_number":22,"context_line":""},{"line_number":23,"context_line":"def availability_zone_list(request):"},{"line_number":24,"context_line":"    \"\"\"Utility method to retrieve a list of availability zones.\"\"\""},{"line_number":25,"context_line":"    try:"},{"line_number":26,"context_line":"        return api.cinder.availability_zone_list(request)"},{"line_number":27,"context_line":"    except Exception:"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa7fdbe_806cd236","line":24,"in_reply_to":"9aa7fdbe_885fb0e4","updated":"2014-10-23 21:25:36.000000000","message":"You\u0027re right! Thanks for advice.","commit_id":"da7aeb4025f12f383edd2f4e124bc3e6dd1c3062"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"0a67118234b6b933379b5d186c10423a4587b0e4","unresolved":false,"context_lines":[{"line_number":26,"context_line":"        return api.cinder.availability_zone_list(request)"},{"line_number":27,"context_line":"    except Exception:"},{"line_number":28,"context_line":"        exceptions.handle(request,"},{"line_number":29,"context_line":"                          _(\u0027Unable to retrieve Cinder availability zones.\u0027))"},{"line_number":30,"context_line":"        return []"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa7fdbe_92199f8a","line":29,"updated":"2014-10-23 06:21:45.000000000","message":"In other files \"Volumes availability zone\" is used but \"Cinder availability zone\" is used here. It looks inconsistent.","commit_id":"da7aeb4025f12f383edd2f4e124bc3e6dd1c3062"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"4bbd390be88e46a803b6ab2483846ac4de68ad83","unresolved":false,"context_lines":[{"line_number":26,"context_line":"        return api.cinder.availability_zone_list(request)"},{"line_number":27,"context_line":"    except Exception:"},{"line_number":28,"context_line":"        exceptions.handle(request,"},{"line_number":29,"context_line":"                          _(\u0027Unable to retrieve Cinder availability zones.\u0027))"},{"line_number":30,"context_line":"        return []"}],"source_content_type":"text/x-python","patch_set":3,"id":"9aa7fdbe_405e6a77","line":29,"in_reply_to":"9aa7fdbe_92199f8a","updated":"2014-10-23 21:25:36.000000000","message":"Ok, let\u0027s use \"volumes\" then.","commit_id":"da7aeb4025f12f383edd2f4e124bc3e6dd1c3062"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"c06fa464ea58a525aea47dff00cbc531af08e983","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- coding: utf-8 -*-"},{"line_number":2,"context_line":"# Copyright (c) 2014 Adrien Vergé \u003cadrien.verge@numergy.com\u003e"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"}],"source_content_type":"text/x-python","patch_set":4,"id":"9aa7fdbe_20b5e67d","line":1,"updated":"2014-10-23 21:33:44.000000000","message":"As said in previous comments:\n\nPEP0263 (source file encoding) is a Python standard [1] [2], and is needed by the Python 2 interpreter to read non-ascii files. Accents and special chars and can appear in names, company names, brands, but also in English words. It is already present in dozens of files across Openstack, and keeps getting merged in other projects. It is compliant with OpenStack Style Guidelines [3].\n\n[1]: http://legacy.python.org/dev/peps/pep-0263/\n\n[2]: https://docs.python.org/2/howto/unicode.html#unicode-literals-in-python-source-code\n\n[3]: http://docs.openstack.org/developer/hacking/","commit_id":"9a419f41f5e033864709431ca6c2b7cf92bb1dc2"},{"author":{"_account_id":11997,"name":"Lennart Regebro","email":"lregebro@redhat.com","username":"lregebro"},"change_message_id":"8116d19dd90b48211ebe5c94fedce9cc2791fbcf","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- coding: utf-8 -*-"},{"line_number":2,"context_line":"# Copyright (c) 2014 Adrien Vergé \u003cadrien.verge@numergy.com\u003e"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":5,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8c0949_85fecd36","line":2,"updated":"2014-11-06 14:14:06.000000000","message":"The problem with a copyright statement like this is that it becomes incorrect if somebody makes changes or additions to the code, as then they have the copyright to the changes/additions.\n\nLooking through the current Horizon code base there is not one single individual person copyright statement in the codebase. The only such statements are those assigning the copyright to corporations.","commit_id":"9a419f41f5e033864709431ca6c2b7cf92bb1dc2"},{"author":{"_account_id":11997,"name":"Lennart Regebro","email":"lregebro@redhat.com","username":"lregebro"},"change_message_id":"f66c35b12d9d5520c41ff0107857b54f6c766792","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- coding: utf-8 -*-"},{"line_number":2,"context_line":"# Copyright (c) 2014 Adrien Vergé \u003cadrien.verge@numergy.com\u003e"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":5,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8c0949_d8627bac","line":2,"in_reply_to":"7a8c0949_76ac3936","updated":"2014-11-06 15:50:49.000000000","message":"So to be clear: \n\nYou don\u0027t have to have a copyright line at all. You still have the copyright. And as Horizon uses the Apache 2 license and has a LICENSE file in the root, you don\u0027t need the license header in the file either.","commit_id":"9a419f41f5e033864709431ca6c2b7cf92bb1dc2"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"b4ec9b3115cd282bb612aeb65ef10fa3f6269b52","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- coding: utf-8 -*-"},{"line_number":2,"context_line":"# Copyright (c) 2014 Adrien Vergé \u003cadrien.verge@numergy.com\u003e"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":5,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8c0949_76ac3936","line":2,"in_reply_to":"7a8c0949_76f43987","updated":"2014-11-06 15:38:31.000000000","message":"Lennart, you are totally right: the copyright header before the license is itself unclear, and this is actually a problem not only for Openstack, but for every free software project.\n\nThe fact is, the Apache License requires this copyright line, as decribed in the license text itself:\n\nhttp://www.apache.org/licenses/LICENSE-2.0#apply","commit_id":"9a419f41f5e033864709431ca6c2b7cf92bb1dc2"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"8d472fe87f740110f2c0ed40f27414de4452200e","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- coding: utf-8 -*-"},{"line_number":2,"context_line":"# Copyright (c) 2014 Adrien Vergé \u003cadrien.verge@numergy.com\u003e"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":5,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8c0949_db1358b6","line":2,"in_reply_to":"7a8c0949_85fecd36","updated":"2014-11-06 15:15:51.000000000","message":"Paragraph 1: This is the same for copyrights with company names right?\n\nParagraph 2: Not having one yet is not a good reason not to do it. Having individual persons in copyright is very common in opensource projects (e.g. the linux kernel). What if a person doesn\u0027t have a company, or when he/she contributes to Openstack on his/her spare time (this is the case here) and doesn\u0027t want the company to hold the copyright?\n\nI don\u0027t want to blame you or anybody here (i\u0027m more than happy to get reviews, even negative one!) but I\u0027m sad that people worry more about not-so-common headers than code and features itself. This patch has been here for 3 weeks and is still at point zero. As a comparison, its twin (for Nova availability zones) had smart comments about code and its definitive version was ready in 4 days.","commit_id":"9a419f41f5e033864709431ca6c2b7cf92bb1dc2"},{"author":{"_account_id":12561,"name":"Adrien Vergé","email":"adrienverge@gmail.com","username":"adrien.verge"},"change_message_id":"f05b85ac31605d747dff6e5d0de0e55de743f5ed","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- coding: utf-8 -*-"},{"line_number":2,"context_line":"# Copyright (c) 2014 Adrien Vergé \u003cadrien.verge@numergy.com\u003e"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":5,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8c0949_7830a701","line":2,"in_reply_to":"7a8c0949_d8627bac","updated":"2014-11-06 16:11:49.000000000","message":"Alright then. I\u0027ll leave the license in the file to keep compliance with http://docs.openstack.org/developer/hacking/#openstack-licensing","commit_id":"9a419f41f5e033864709431ca6c2b7cf92bb1dc2"},{"author":{"_account_id":11997,"name":"Lennart Regebro","email":"lregebro@redhat.com","username":"lregebro"},"change_message_id":"df04a240d3a2124d6848009708329eeaef8bb4fe","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- coding: utf-8 -*-"},{"line_number":2,"context_line":"# Copyright (c) 2014 Adrien Vergé \u003cadrien.verge@numergy.com\u003e"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\"); you may"},{"line_number":5,"context_line":"# not use this file except in compliance with the License. You may obtain"}],"source_content_type":"text/x-python","patch_set":4,"id":"7a8c0949_76f43987","line":2,"in_reply_to":"7a8c0949_db1358b6","updated":"2014-11-06 15:30:45.000000000","message":"Openstack have plenty of individual persons in copyright, in fact most contributors are copyright holders of the code they write. But you do not need this header to have your copyright, you have it anyway, automatically, by law.\n\nThe only time you do not have that copyright is when you do the work for a company, and in your contract you have that work done during work hour will be copyrighted to that company. This is why there are these company headers here.\n\nYou are right that it becomes complicated when a file is added by somebody working for a company, and the header is added, and somebody not working for that company edits the file. Exactly what would happen in that case is a legal issue, and you would have to pay lawyers a lot of money to tell you. I surely can not.\n\nBut by adding this header you at least imply that anyone editing the file would have to give the copyright of what they are working on to you. This is a complication that in my opinion is completely unnecessary.","commit_id":"9a419f41f5e033864709431ca6c2b7cf92bb1dc2"}]}
