)]}'
{"horizon/utils/functions.py":[{"author":{"_account_id":1816,"name":"Gabriel Hurley","email":"gabriel.hurley@nebula.com","username":"gabriel-hurley"},"change_message_id":"19685ff0c93670f631c2ba20fc9e2778e270652c","unresolved":false,"context_lines":[{"line_number":11,"context_line":"lazy_join \u003d lazy(_lazy_join, unicode)"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"def bytes_to_gb(bytes):"},{"line_number":15,"context_line":"    return float(bytes) / 1024 ** 3"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2B1vo%3D","line":14,"updated":"2013-02-17 23:49:18.000000000","message":"Django has a built-in function for what you\u0027re using this for. See my comment in forms.py for more information.","commit_id":"91b5b7dcc4b6e3dbab1f924f917d9c2685df8ab9"},{"author":{"_account_id":1107,"name":"Josh Durgin","email":"jdurgin@redhat.com","username":"jdurgin"},"change_message_id":"b19813597af9acd4e6710e21135074f902ee19f0","unresolved":false,"context_lines":[{"line_number":11,"context_line":"lazy_join \u003d lazy(_lazy_join, unicode)"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"def bytes_to_gb(bytes):"},{"line_number":15,"context_line":"    return float(bytes) / 1024 ** 3"},{"line_number":16,"context_line":""},{"line_number":17,"context_line":""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2Bz68%3D","line":14,"in_reply_to":"AAAAM3%2F%2B1vo%3D","updated":"2013-02-18 22:52:59.000000000","message":"Thanks, I\u0027ll use that instead.","commit_id":"91b5b7dcc4b6e3dbab1f924f917d9c2685df8ab9"},{"author":{"_account_id":4978,"name":"Julie Pichon","email":"jpichon@redhat.com","username":"jpichon"},"change_message_id":"eb1b3bd24d788da34e3c87763cb1bab671a51fe2","unresolved":false,"context_lines":[{"line_number":11,"context_line":"lazy_join \u003d lazy(_lazy_join, unicode)"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"def gb_to_contain_bytes(bytes):"},{"line_number":15,"context_line":"    return int(math.ceil(float(bytes) / 1024 ** 3))"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAANH%2F%2F%2FH0%3D","line":14,"updated":"2013-02-28 15:36:08.000000000","message":"Without context it can be difficult to parse/understand that function name correctly (as a non-native English speaker, anyway...). I would suggest adding a comment describing what this does as a full sentence, e.g. \"Calculate the minimum Gb size required to contain the amount of bytes\".","commit_id":"2e8b7b8e7bf36012acd1ed84e1798b3ef21507a0"},{"author":{"_account_id":2243,"name":"John Griffith","email":"john.griffith8@gmail.com","username":"john-griffith"},"change_message_id":"f4f67454f9c289f1c7bc7fb0a3c043808a8d0f81","unresolved":false,"context_lines":[{"line_number":11,"context_line":"lazy_join \u003d lazy(_lazy_join, unicode)"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":""},{"line_number":14,"context_line":"def gb_to_contain_bytes(bytes):"},{"line_number":15,"context_line":"    return int(math.ceil(float(bytes) / 1024 ** 3))"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAOH%2F%2F8gk%3D","line":14,"in_reply_to":"AAAANH%2F%2F%2FH0%3D","updated":"2013-03-19 22:03:25.000000000","message":"Done","commit_id":"2e8b7b8e7bf36012acd1ed84e1798b3ef21507a0"}],"horizon/utils/images.py":[{"author":{"_account_id":1816,"name":"Gabriel Hurley","email":"gabriel.hurley@nebula.com","username":"gabriel-hurley"},"change_message_id":"19685ff0c93670f631c2ba20fc9e2778e270652c","unresolved":false,"context_lines":[{"line_number":3,"context_line":"from openstack_dashboard.api import glance"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"def get_available_images(request, project_id\u003dNone, images_cache\u003dNone):"},{"line_number":7,"context_line":"    \"\"\""},{"line_number":8,"context_line":"    Returns a list of images that are public or owned by the given"},{"line_number":9,"context_line":"    project_id. If project_id is not specified, only public images"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2B1v0%3D","line":6,"updated":"2013-02-17 23:49:18.000000000","message":"All OpenStack-related code should live in the openstack_dashboard project directory. I\u0027d say somewhere like openstack_dashboard/dashboards/project/images_and_snapshots/utils.py","commit_id":"91b5b7dcc4b6e3dbab1f924f917d9c2685df8ab9"},{"author":{"_account_id":1107,"name":"Josh Durgin","email":"jdurgin@redhat.com","username":"jdurgin"},"change_message_id":"b19813597af9acd4e6710e21135074f902ee19f0","unresolved":false,"context_lines":[{"line_number":3,"context_line":"from openstack_dashboard.api import glance"},{"line_number":4,"context_line":""},{"line_number":5,"context_line":""},{"line_number":6,"context_line":"def get_available_images(request, project_id\u003dNone, images_cache\u003dNone):"},{"line_number":7,"context_line":"    \"\"\""},{"line_number":8,"context_line":"    Returns a list of images that are public or owned by the given"},{"line_number":9,"context_line":"    project_id. If project_id is not specified, only public images"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2Bz6A%3D","line":6,"in_reply_to":"AAAAM3%2F%2B1v0%3D","updated":"2013-02-18 22:52:59.000000000","message":"Done","commit_id":"91b5b7dcc4b6e3dbab1f924f917d9c2685df8ab9"}],"openstack_dashboard/api/cinder.py":[{"author":{"_account_id":1816,"name":"Gabriel Hurley","email":"gabriel.hurley@nebula.com","username":"gabriel-hurley"},"change_message_id":"19685ff0c93670f631c2ba20fc9e2778e270652c","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                  snapshot_id\u003dNone, image_id\u003dNone):"},{"line_number":92,"context_line":"    return cinderclient(request).volumes.create(size, display_name\u003dname,"},{"line_number":93,"context_line":"            display_description\u003ddescription, volume_type\u003dvolume_type,"},{"line_number":94,"context_line":"            snapshot_id\u003dsnapshot_id, imageRef\u003dimage_id)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"def volume_delete(request, volume_id):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2B1v4%3D","line":94,"updated":"2013-02-17 23:49:18.000000000","message":"When was this added to Cinder and/or when was this added to cinderclient? Horizon maintains N-1 compatibility, so if this was not present in Folsom Cinder then we need a flag to enable/disable this behavior.","commit_id":"91b5b7dcc4b6e3dbab1f924f917d9c2685df8ab9"},{"author":{"_account_id":1107,"name":"Josh Durgin","email":"jdurgin@redhat.com","username":"jdurgin"},"change_message_id":"b19813597af9acd4e6710e21135074f902ee19f0","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                  snapshot_id\u003dNone, image_id\u003dNone):"},{"line_number":92,"context_line":"    return cinderclient(request).volumes.create(size, display_name\u003dname,"},{"line_number":93,"context_line":"            display_description\u003ddescription, volume_type\u003dvolume_type,"},{"line_number":94,"context_line":"            snapshot_id\u003dsnapshot_id, imageRef\u003dimage_id)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"def volume_delete(request, volume_id):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2Bz6c%3D","line":94,"in_reply_to":"AAAAM3%2F%2B1v4%3D","updated":"2013-02-18 22:52:59.000000000","message":"This was added to both cinder and cinderclient in Folsom.","commit_id":"91b5b7dcc4b6e3dbab1f924f917d9c2685df8ab9"},{"author":{"_account_id":4978,"name":"Julie Pichon","email":"jpichon@redhat.com","username":"jpichon"},"change_message_id":"eb1b3bd24d788da34e3c87763cb1bab671a51fe2","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                  snapshot_id\u003dNone, image_id\u003dNone, metadata\u003dNone):"},{"line_number":92,"context_line":"    return cinderclient(request).volumes.create(size, display_name\u003dname,"},{"line_number":93,"context_line":"            display_description\u003ddescription, volume_type\u003dvolume_type,"},{"line_number":94,"context_line":"            snapshot_id\u003dsnapshot_id, metadata\u003dmetadata, imageRef\u003dimage_id)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"def volume_delete(request, volume_id):"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAANH%2F%2F%2FHM%3D","line":94,"updated":"2013-02-28 15:36:08.000000000","message":"Nit: For consistency, it would be nicer to keep the same ordering for the parameters in the function definition and in the call to cinderclient.","commit_id":"2e8b7b8e7bf36012acd1ed84e1798b3ef21507a0"},{"author":{"_account_id":2243,"name":"John Griffith","email":"john.griffith8@gmail.com","username":"john-griffith"},"change_message_id":"f4f67454f9c289f1c7bc7fb0a3c043808a8d0f81","unresolved":false,"context_lines":[{"line_number":91,"context_line":"                  snapshot_id\u003dNone, image_id\u003dNone, metadata\u003dNone):"},{"line_number":92,"context_line":"    return cinderclient(request).volumes.create(size, display_name\u003dname,"},{"line_number":93,"context_line":"            display_description\u003ddescription, volume_type\u003dvolume_type,"},{"line_number":94,"context_line":"            snapshot_id\u003dsnapshot_id, metadata\u003dmetadata, imageRef\u003dimage_id)"},{"line_number":95,"context_line":""},{"line_number":96,"context_line":""},{"line_number":97,"context_line":"def volume_delete(request, volume_id):"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAOH%2F%2F8f4%3D","line":94,"in_reply_to":"AAAANH%2F%2F%2FHM%3D","updated":"2013-03-19 22:03:25.000000000","message":"Done","commit_id":"2e8b7b8e7bf36012acd1ed84e1798b3ef21507a0"}],"openstack_dashboard/dashboards/project/volumes/forms.py":[{"author":{"_account_id":1816,"name":"Gabriel Hurley","email":"gabriel.hurley@nebula.com","username":"gabriel-hurley"},"change_message_id":"19685ff0c93670f631c2ba20fc9e2778e270652c","unresolved":false,"context_lines":[{"line_number":48,"context_line":"                                        widget\u003dSelectWidget("},{"line_number":49,"context_line":"                                          attrs\u003d{\u0027class\u0027: \u0027image-selector\u0027},"},{"line_number":50,"context_line":"                                          data_attrs\u003d(\u0027size\u0027, \u0027name\u0027),"},{"line_number":51,"context_line":"                                          transform\u003dlambda x:"},{"line_number":52,"context_line":"                                                (\"%s (%.2fGB)\" %"},{"line_number":53,"context_line":"                                                 (x.name,"},{"line_number":54,"context_line":"                                                  bytes_to_gb(x.size)))),"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2B1wM%3D","line":51,"updated":"2013-02-17 23:49:18.000000000","message":"Django\u0027s built-in filesizeformat filter can already do what you\u0027re using this for:\n\nhttps://docs.djangoproject.com/en/dev/ref/templates/builtins/?from\u003dolddocs#filesizeformat","commit_id":"91b5b7dcc4b6e3dbab1f924f917d9c2685df8ab9"},{"author":{"_account_id":1107,"name":"Josh Durgin","email":"jdurgin@redhat.com","username":"jdurgin"},"change_message_id":"b19813597af9acd4e6710e21135074f902ee19f0","unresolved":false,"context_lines":[{"line_number":48,"context_line":"                                        widget\u003dSelectWidget("},{"line_number":49,"context_line":"                                          attrs\u003d{\u0027class\u0027: \u0027image-selector\u0027},"},{"line_number":50,"context_line":"                                          data_attrs\u003d(\u0027size\u0027, \u0027name\u0027),"},{"line_number":51,"context_line":"                                          transform\u003dlambda x:"},{"line_number":52,"context_line":"                                                (\"%s (%.2fGB)\" %"},{"line_number":53,"context_line":"                                                 (x.name,"},{"line_number":54,"context_line":"                                                  bytes_to_gb(x.size)))),"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2Bz6Y%3D","line":51,"in_reply_to":"AAAAM3%2F%2B1wM%3D","updated":"2013-02-18 22:52:59.000000000","message":"Done","commit_id":"91b5b7dcc4b6e3dbab1f924f917d9c2685df8ab9"},{"author":{"_account_id":1816,"name":"Gabriel Hurley","email":"gabriel.hurley@nebula.com","username":"gabriel-hurley"},"change_message_id":"19685ff0c93670f631c2ba20fc9e2778e270652c","unresolved":false,"context_lines":[{"line_number":128,"context_line":"                del self.fields[\u0027image_source\u0027]"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"            if source_type_choices:"},{"line_number":131,"context_line":"                choices \u003d ([(\u0027blank_source_type\u0027, _(\"Blank\"))] +"},{"line_number":132,"context_line":"                            source_type_choices)"},{"line_number":133,"context_line":"                self.fields[\u0027volume_source_type\u0027].choices \u003d choices"},{"line_number":134,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2B1wE%3D","line":131,"updated":"2013-02-17 23:49:18.000000000","message":"\"Blank\" is rather ambigious in this context. Perhaps it might be clearer if the option read \"No source, empty volume.\" ?","commit_id":"91b5b7dcc4b6e3dbab1f924f917d9c2685df8ab9"},{"author":{"_account_id":1107,"name":"Josh Durgin","email":"jdurgin@redhat.com","username":"jdurgin"},"change_message_id":"b19813597af9acd4e6710e21135074f902ee19f0","unresolved":false,"context_lines":[{"line_number":128,"context_line":"                del self.fields[\u0027image_source\u0027]"},{"line_number":129,"context_line":""},{"line_number":130,"context_line":"            if source_type_choices:"},{"line_number":131,"context_line":"                choices \u003d ([(\u0027blank_source_type\u0027, _(\"Blank\"))] +"},{"line_number":132,"context_line":"                            source_type_choices)"},{"line_number":133,"context_line":"                self.fields[\u0027volume_source_type\u0027].choices \u003d choices"},{"line_number":134,"context_line":"            else:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2Bz6I%3D","line":131,"in_reply_to":"AAAAM3%2F%2B1wE%3D","updated":"2013-02-18 22:52:59.000000000","message":"Sounds good to me.","commit_id":"91b5b7dcc4b6e3dbab1f924f917d9c2685df8ab9"},{"author":{"_account_id":1816,"name":"Gabriel Hurley","email":"gabriel.hurley@nebula.com","username":"gabriel-hurley"},"change_message_id":"19685ff0c93670f631c2ba20fc9e2778e270652c","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                if (data[\u0027size\u0027] \u003c image_size):"},{"line_number":164,"context_line":"                    error_message \u003d _(\u0027The volume size cannot be less than \u0027"},{"line_number":165,"context_line":"                                      \u0027the image size (%.2fGB)\u0027 %"},{"line_number":166,"context_line":"                                      bytes_to_gb(image.size))"},{"line_number":167,"context_line":"                    raise ValidationError(error_message)"},{"line_number":168,"context_line":"            else:"},{"line_number":169,"context_line":"                if type(data[\u0027size\u0027]) is str:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2B1wA%3D","line":166,"updated":"2013-02-17 23:49:18.000000000","message":"same as above","commit_id":"91b5b7dcc4b6e3dbab1f924f917d9c2685df8ab9"},{"author":{"_account_id":1107,"name":"Josh Durgin","email":"jdurgin@redhat.com","username":"jdurgin"},"change_message_id":"b19813597af9acd4e6710e21135074f902ee19f0","unresolved":false,"context_lines":[{"line_number":163,"context_line":"                if (data[\u0027size\u0027] \u003c image_size):"},{"line_number":164,"context_line":"                    error_message \u003d _(\u0027The volume size cannot be less than \u0027"},{"line_number":165,"context_line":"                                      \u0027the image size (%.2fGB)\u0027 %"},{"line_number":166,"context_line":"                                      bytes_to_gb(image.size))"},{"line_number":167,"context_line":"                    raise ValidationError(error_message)"},{"line_number":168,"context_line":"            else:"},{"line_number":169,"context_line":"                if type(data[\u0027size\u0027]) is str:"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAAM3%2F%2Bz6U%3D","line":166,"in_reply_to":"AAAAM3%2F%2B1wA%3D","updated":"2013-02-18 22:52:59.000000000","message":"Done","commit_id":"91b5b7dcc4b6e3dbab1f924f917d9c2685df8ab9"},{"author":{"_account_id":4978,"name":"Julie Pichon","email":"jpichon@redhat.com","username":"jpichon"},"change_message_id":"eb1b3bd24d788da34e3c87763cb1bab671a51fe2","unresolved":false,"context_lines":[{"line_number":47,"context_line":"                                                                x.size))),"},{"line_number":48,"context_line":"                                        required\u003dFalse)"},{"line_number":49,"context_line":"    image_source \u003d forms.ChoiceField(label\u003d_(\"Use image as a source\"),"},{"line_number":50,"context_line":"                                        widget\u003dSelectWidget("},{"line_number":51,"context_line":"                                          attrs\u003d{\u0027class\u0027: \u0027image-selector\u0027},"},{"line_number":52,"context_line":"                                          data_attrs\u003d(\u0027size\u0027, \u0027name\u0027),"},{"line_number":53,"context_line":"                                          transform\u003dlambda x:"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAANH%2F%2F%2FGw%3D","line":50,"updated":"2013-02-28 15:36:08.000000000","message":"\"Widget\" should be aligned with \"label\"","commit_id":"2e8b7b8e7bf36012acd1ed84e1798b3ef21507a0"},{"author":{"_account_id":2243,"name":"John Griffith","email":"john.griffith8@gmail.com","username":"john-griffith"},"change_message_id":"f4f67454f9c289f1c7bc7fb0a3c043808a8d0f81","unresolved":false,"context_lines":[{"line_number":47,"context_line":"                                                                x.size))),"},{"line_number":48,"context_line":"                                        required\u003dFalse)"},{"line_number":49,"context_line":"    image_source \u003d forms.ChoiceField(label\u003d_(\"Use image as a source\"),"},{"line_number":50,"context_line":"                                        widget\u003dSelectWidget("},{"line_number":51,"context_line":"                                          attrs\u003d{\u0027class\u0027: \u0027image-selector\u0027},"},{"line_number":52,"context_line":"                                          data_attrs\u003d(\u0027size\u0027, \u0027name\u0027),"},{"line_number":53,"context_line":"                                          transform\u003dlambda x:"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAOH%2F%2F8fc%3D","line":50,"in_reply_to":"AAAANH%2F%2F%2FGw%3D","updated":"2013-03-19 22:03:25.000000000","message":"Done","commit_id":"2e8b7b8e7bf36012acd1ed84e1798b3ef21507a0"},{"author":{"_account_id":4978,"name":"Julie Pichon","email":"jpichon@redhat.com","username":"jpichon"},"change_message_id":"eb1b3bd24d788da34e3c87763cb1bab671a51fe2","unresolved":false,"context_lines":[{"line_number":54,"context_line":"                                                (\"%s (%s)\" %"},{"line_number":55,"context_line":"                                                 (x.name,"},{"line_number":56,"context_line":"                                                  filesizeformat(x.bytes)))),"},{"line_number":57,"context_line":"                                        required\u003dFalse)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def __init__(self, request, *args, **kwargs):"},{"line_number":60,"context_line":"        super(CreateForm, self).__init__(request, *args, **kwargs)"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAANH%2F%2F%2FGk%3D","line":57,"updated":"2013-02-28 15:36:08.000000000","message":"Same indentation comment for \"required\"","commit_id":"2e8b7b8e7bf36012acd1ed84e1798b3ef21507a0"},{"author":{"_account_id":2243,"name":"John Griffith","email":"john.griffith8@gmail.com","username":"john-griffith"},"change_message_id":"f4f67454f9c289f1c7bc7fb0a3c043808a8d0f81","unresolved":false,"context_lines":[{"line_number":54,"context_line":"                                                (\"%s (%s)\" %"},{"line_number":55,"context_line":"                                                 (x.name,"},{"line_number":56,"context_line":"                                                  filesizeformat(x.bytes)))),"},{"line_number":57,"context_line":"                                        required\u003dFalse)"},{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    def __init__(self, request, *args, **kwargs):"},{"line_number":60,"context_line":"        super(CreateForm, self).__init__(request, *args, **kwargs)"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAOH%2F%2F8fU%3D","line":57,"in_reply_to":"AAAANH%2F%2F%2FGk%3D","updated":"2013-03-19 22:03:25.000000000","message":"Done","commit_id":"2e8b7b8e7bf36012acd1ed84e1798b3ef21507a0"},{"author":{"_account_id":4978,"name":"Julie Pichon","email":"jpichon@redhat.com","username":"jpichon"},"change_message_id":"433134c3b233b78ae745ad73071cc38a78525c98","unresolved":false,"context_lines":[{"line_number":119,"context_line":"                del self.fields[\u0027volume_source_type\u0027]"},{"line_number":120,"context_line":"            except:"},{"line_number":121,"context_line":"                exceptions.handle(request, _(\u0027Unable to load the \u0027"},{"line_number":122,"context_line":"                                             \u0027specified image. %s\u0027) % image)"},{"line_number":123,"context_line":"        else:"},{"line_number":124,"context_line":"            source_type_choices \u003d []"},{"line_number":125,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAOH%2F%2Fz7M%3D","line":122,"updated":"2013-03-26 17:50:35.000000000","message":"If we failed while attempting to retrieve the image on line 109, the \"image\" variable won\u0027t be defined and the exception handling will fail. It probably makes more sense here to use the image_id.","commit_id":"fbaaa1e08a73da832975bc4a53b9aba5365162c0"},{"author":{"_account_id":1107,"name":"Josh Durgin","email":"jdurgin@redhat.com","username":"jdurgin"},"change_message_id":"6b20ee54397d1faa72aa2b09a02adb6337ff4502","unresolved":false,"context_lines":[{"line_number":119,"context_line":"                del self.fields[\u0027volume_source_type\u0027]"},{"line_number":120,"context_line":"            except:"},{"line_number":121,"context_line":"                exceptions.handle(request, _(\u0027Unable to load the \u0027"},{"line_number":122,"context_line":"                                             \u0027specified image. %s\u0027) % image)"},{"line_number":123,"context_line":"        else:"},{"line_number":124,"context_line":"            source_type_choices \u003d []"},{"line_number":125,"context_line":""}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAOn%2F%2FWXA%3D","line":122,"in_reply_to":"AAAAOH%2F%2Fz7M%3D","updated":"2013-05-13 23:43:48.000000000","message":"Done","commit_id":"fbaaa1e08a73da832975bc4a53b9aba5365162c0"},{"author":{"_account_id":4978,"name":"Julie Pichon","email":"jpichon@redhat.com","username":"jpichon"},"change_message_id":"433134c3b233b78ae745ad73071cc38a78525c98","unresolved":false,"context_lines":[{"line_number":135,"context_line":"                    del self.fields[\u0027snapshot_source\u0027]"},{"line_number":136,"context_line":"            except:"},{"line_number":137,"context_line":"                exceptions.handle(request, _(\"Unable to retrieve \""},{"line_number":138,"context_line":"                        \"volume snapshots. %s\") % snapshots)"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"            images \u003d get_available_images(request,"},{"line_number":141,"context_line":"                                          request.user.tenant_id)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAOH%2F%2Fz6U%3D","line":138,"updated":"2013-03-26 17:50:35.000000000","message":"Same comment as above, the \u0027snapshots\u0027 variable may not exist when the exception is thrown. An option could be to initialise the variable to e.g. None before the try block.","commit_id":"fbaaa1e08a73da832975bc4a53b9aba5365162c0"},{"author":{"_account_id":1107,"name":"Josh Durgin","email":"jdurgin@redhat.com","username":"jdurgin"},"change_message_id":"6b20ee54397d1faa72aa2b09a02adb6337ff4502","unresolved":false,"context_lines":[{"line_number":135,"context_line":"                    del self.fields[\u0027snapshot_source\u0027]"},{"line_number":136,"context_line":"            except:"},{"line_number":137,"context_line":"                exceptions.handle(request, _(\"Unable to retrieve \""},{"line_number":138,"context_line":"                        \"volume snapshots. %s\") % snapshots)"},{"line_number":139,"context_line":""},{"line_number":140,"context_line":"            images \u003d get_available_images(request,"},{"line_number":141,"context_line":"                                          request.user.tenant_id)"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAOn%2F%2FWW8%3D","line":138,"in_reply_to":"AAAAOH%2F%2Fz6U%3D","updated":"2013-05-13 23:43:48.000000000","message":"I removed the change in this line since it was just useful for debugging this patch.","commit_id":"fbaaa1e08a73da832975bc4a53b9aba5365162c0"}]}
