)]}'
{"openstack_dashboard/dashboards/admin/images/tables.py":[{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"845851964abc8979d00812c0480773f6b47c780a","unresolved":false,"context_lines":[{"line_number":84,"context_line":"                         AdminImageFilterAction)"},{"line_number":85,"context_line":"        row_actions \u003d (AdminEditImage, UpdateMetadata, AdminDownloadImage,"},{"line_number":86,"context_line":"                       AdminDeleteImage)"},{"line_number":87,"context_line":"        if django.get_version() \u003c (1, 5):"},{"line_number":88,"context_line":"            row_actions \u003d (AdminEditImage, UpdateMetadata, AdminDeleteImage)"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_0b7d821c","line":87,"updated":"2015-03-06 09:36:46.000000000","message":"this is not required, we can hide this button in \"allowed\" method.","commit_id":"cb5b1bf53f657f83c1bba4951d1daa162c394118"},{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"0ccd4d49e2107d352b607fd0cd4afe289f1b754c","unresolved":false,"context_lines":[{"line_number":52,"context_line":"class AdminDownloadImage(project_tables.DownloadImage):"},{"line_number":53,"context_line":"    url \u003d \"horizon:admin:images:download\""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def allowed(self, request, image\u003dNone):"},{"line_number":56,"context_line":"        if django.VERSION \u003c (1, 5):"},{"line_number":57,"context_line":"            return False"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_60953386","line":55,"updated":"2015-03-06 12:43:39.000000000","message":"the function is not complete.\nit is returning None, if the version is \u003e 1.5\nNote: no need to override the method here.","commit_id":"07bb9d8889abf33beca1413dd98da5c68fd14240"},{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"a13b1c5f823900bcfdc3d737bcb0e5d28e9d6b8a","unresolved":false,"context_lines":[{"line_number":52,"context_line":"class AdminDownloadImage(project_tables.DownloadImage):"},{"line_number":53,"context_line":"    url \u003d \"horizon:admin:images:download\""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def allowed(self, request, image\u003dNone):"},{"line_number":56,"context_line":"        if django.VERSION \u003c (1, 5):"},{"line_number":57,"context_line":"            return False"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_836a317f","line":55,"in_reply_to":"9a80dd14_60953386","updated":"2015-03-06 13:15:49.000000000","message":"Right, I agree it\u0027s returning None in case version is \u003e\u003d 1.5 while it should be returning True.\n\nCould you please clarify your note? If I don\u0027t override it here than I\u0027d need to check django version in class Meta and adjust row_actions accordingly, no?","commit_id":"07bb9d8889abf33beca1413dd98da5c68fd14240"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"d742a2e72c40f6bd09ff0488271b619cc3df6a28","unresolved":false,"context_lines":[{"line_number":52,"context_line":"class AdminDownloadImage(project_tables.DownloadImage):"},{"line_number":53,"context_line":"    url \u003d \"horizon:admin:images:download\""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def allowed(self, request, image\u003dNone):"},{"line_number":56,"context_line":"        if django.VERSION \u003c (1, 5):"},{"line_number":57,"context_line":"            return False"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_9967feb6","line":55,"in_reply_to":"9a80dd14_836a317f","updated":"2015-03-06 14:03:26.000000000","message":"I think Masco\u0027s point is that project_tables.DownloadImage.allowed handles this properly.  This implementation is wrong.  You could just omit this allowed method and you should get the right behavior.","commit_id":"07bb9d8889abf33beca1413dd98da5c68fd14240"},{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"b67f52f4e3bf49b472df07e8c0d456d5f0c54074","unresolved":false,"context_lines":[{"line_number":52,"context_line":"class AdminDownloadImage(project_tables.DownloadImage):"},{"line_number":53,"context_line":"    url \u003d \"horizon:admin:images:download\""},{"line_number":54,"context_line":""},{"line_number":55,"context_line":"    def allowed(self, request, image\u003dNone):"},{"line_number":56,"context_line":"        if django.VERSION \u003c (1, 5):"},{"line_number":57,"context_line":"            return False"},{"line_number":58,"context_line":""}],"source_content_type":"text/x-python","patch_set":9,"id":"9a80dd14_99ed3eba","line":55,"in_reply_to":"9a80dd14_9967feb6","updated":"2015-03-06 14:10:11.000000000","message":"Thank you Doug. I just double checked and you and Masco are right. Uploading new patchset. Thank you!","commit_id":"07bb9d8889abf33beca1413dd98da5c68fd14240"}],"openstack_dashboard/dashboards/project/images/images/tables.py":[{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"845851964abc8979d00812c0480773f6b47c780a","unresolved":false,"context_lines":[{"line_number":147,"context_line":"    url \u003d \"horizon:project:images:images:download\""},{"line_number":148,"context_line":"    policy_rules \u003d ((\"image\", \"download_image\"),)"},{"line_number":149,"context_line":""},{"line_number":150,"context_line":"    def allowed(self, request, image\u003dNone):"},{"line_number":151,"context_line":"        if image:"},{"line_number":152,"context_line":"            return image.status in (\"active\",)"},{"line_number":153,"context_line":"        return False"}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_4bdcda12","line":150,"updated":"2015-03-06 09:36:46.000000000","message":"return \"False\" if the django version is \u003c 1.5, this is the way we are handling for all the actions.","commit_id":"cb5b1bf53f657f83c1bba4951d1daa162c394118"},{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"845851964abc8979d00812c0480773f6b47c780a","unresolved":false,"context_lines":[{"line_number":284,"context_line":"        table_actions \u003d (OwnerFilter, CreateImage, DeleteImage,)"},{"line_number":285,"context_line":"        row_actions \u003d (LaunchImage, CreateVolumeFromImage,"},{"line_number":286,"context_line":"                       EditImage, DownloadImage, DeleteImage,)"},{"line_number":287,"context_line":"        if django.get_version() \u003c (1, 5):"},{"line_number":288,"context_line":"            row_actions \u003d (LaunchImage, CreateVolumeFromImage, EditImage,"},{"line_number":289,"context_line":"                           DeleteImage,)"},{"line_number":290,"context_line":"        pagination_param \u003d \"image_marker\""}],"source_content_type":"text/x-python","patch_set":8,"id":"9a80dd14_6bc0be2a","line":287,"updated":"2015-03-06 09:36:46.000000000","message":"this check is not required, we can do it in allowed method","commit_id":"cb5b1bf53f657f83c1bba4951d1daa162c394118"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"f3892102f2fea2db6128d4ed2a7523860870f2be","unresolved":false,"context_lines":[{"line_number":151,"context_line":"        if django.VERSION \u003c (1, 5):"},{"line_number":152,"context_line":"            return False"},{"line_number":153,"context_line":"        if image:"},{"line_number":154,"context_line":"            return image.status in (\"active\",)"},{"line_number":155,"context_line":"        return False"},{"line_number":156,"context_line":""},{"line_number":157,"context_line":""}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_1b39863f","line":154,"updated":"2015-03-17 21:46:25.000000000","message":"why the list and just a string comparison?","commit_id":"7aa18e9cd4cb10f3aa2d3339c0a7bd1b782d1844"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"cd40ee079edba4def04885d809c5c923bd8f0766","unresolved":false,"context_lines":[{"line_number":165,"context_line":"class DownloadImage(tables.LinkAction):"},{"line_number":166,"context_line":"    name \u003d \"download_image\""},{"line_number":167,"context_line":"    verbose_name \u003d _(\"Download Image\")"},{"line_number":168,"context_line":"    classes \u003d (\"btn-download\",)"},{"line_number":169,"context_line":"    url \u003d \"horizon:project:images:images:download\""},{"line_number":170,"context_line":"    policy_rules \u003d ((\"image\", \"download_image\"),)"},{"line_number":171,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"dac4157f_de3c9031","line":168,"updated":"2015-04-20 17:03:58.000000000","message":"we use icon \u003d \"\u003csome font awesome icon\u003e\" now","commit_id":"56fce179c04bdb65a7319ebbf37c255ad38d8d76"},{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"517056bbeafcda504858c29ee1cdfdfdfa044096","unresolved":false,"context_lines":[{"line_number":165,"context_line":"class DownloadImage(tables.LinkAction):"},{"line_number":166,"context_line":"    name \u003d \"download_image\""},{"line_number":167,"context_line":"    verbose_name \u003d _(\"Download Image\")"},{"line_number":168,"context_line":"    classes \u003d (\"btn-download\",)"},{"line_number":169,"context_line":"    url \u003d \"horizon:project:images:images:download\""},{"line_number":170,"context_line":"    policy_rules \u003d ((\"image\", \"download_image\"),)"},{"line_number":171,"context_line":""}],"source_content_type":"text/x-python","patch_set":14,"id":"7ad32947_fd22bfb8","line":168,"in_reply_to":"dac4157f_de3c9031","updated":"2015-04-29 13:54:24.000000000","message":"Done","commit_id":"56fce179c04bdb65a7319ebbf37c255ad38d8d76"},{"author":{"_account_id":9622,"name":"Cindy Lu","email":"clu@us.ibm.com","username":"clu14"},"change_message_id":"cd40ee079edba4def04885d809c5c923bd8f0766","unresolved":false,"context_lines":[{"line_number":174,"context_line":"            return False"},{"line_number":175,"context_line":"        if image:"},{"line_number":176,"context_line":"            return image.status in (\"active\",)"},{"line_number":177,"context_line":"        return False"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"def filter_tenants():"}],"source_content_type":"text/x-python","patch_set":14,"id":"dac4157f_1eed688b","line":177,"updated":"2015-04-20 17:03:58.000000000","message":"how about: \n\nif image and django.VERSION \u003e\u003d (1, 5):\n  return image.status in (\"active\",)\nreturn False","commit_id":"56fce179c04bdb65a7319ebbf37c255ad38d8d76"},{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"517056bbeafcda504858c29ee1cdfdfdfa044096","unresolved":false,"context_lines":[{"line_number":174,"context_line":"            return False"},{"line_number":175,"context_line":"        if image:"},{"line_number":176,"context_line":"            return image.status in (\"active\",)"},{"line_number":177,"context_line":"        return False"},{"line_number":178,"context_line":""},{"line_number":179,"context_line":""},{"line_number":180,"context_line":"def filter_tenants():"}],"source_content_type":"text/x-python","patch_set":14,"id":"7ad32947_1d269bce","line":177,"in_reply_to":"dac4157f_1eed688b","updated":"2015-04-29 13:54:24.000000000","message":"Done","commit_id":"56fce179c04bdb65a7319ebbf37c255ad38d8d76"},{"author":{"_account_id":1941,"name":"Lin Hua Cheng","email":"os.lcheng@gmail.com","username":"lin-hua-cheng"},"change_message_id":"68ca676cc546d03cc9794518e6957bbafe37ea52","unresolved":false,"context_lines":[{"line_number":163,"context_line":"class DownloadImage(tables.LinkAction):"},{"line_number":164,"context_line":"    name \u003d \"download_image\""},{"line_number":165,"context_line":"    verbose_name \u003d _(\"Download Image\")"},{"line_number":166,"context_line":"    classes \u003d (\"btn-download\",)"},{"line_number":167,"context_line":"    icon \u003d \"cloud-download\""},{"line_number":168,"context_line":"    url \u003d \"horizon:project:images:images:download\""},{"line_number":169,"context_line":"    policy_rules \u003d ((\"image\", \"download_image\"),)"}],"source_content_type":"text/x-python","patch_set":16,"id":"ba3cc151_f3c05352","line":166,"updated":"2015-07-02 00:21:29.000000000","message":"not sure if this class is defined anywhere","commit_id":"28f9374e968eaab8d6a04877554d99a9fc7fe0bf"}],"openstack_dashboard/dashboards/project/images/images/views.py":[{"author":{"_account_id":9647,"name":"Justin Pomeroy","email":"jpomero@linux.vnet.ibm.com","username":"jpomero"},"change_message_id":"457013bbda3c81bae6f6ce6f99372f49ecd7e9fe","unresolved":false,"context_lines":[{"line_number":117,"context_line":"        return response"},{"line_number":118,"context_line":"    except Exception as e:"},{"line_number":119,"context_line":"        msg \u003d _(\u0027Unable to download image.\u0027)"},{"line_number":120,"context_line":"        url \u003d reverse(\u0027horizon:project:images_and_snapshots:index\u0027)"},{"line_number":121,"context_line":"        messages.error(request, _(\u0027Error downloading image file: %s\u0027) % e)"},{"line_number":122,"context_line":"        exceptions.handle(request, msg, redirect\u003durl)"}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAVn%2F%2F30o%3D","line":120,"updated":"2014-03-03 17:45:13.000000000","message":"Maybe this is supposed to be \u0027horizon:project:images:index\u0027?","commit_id":"837ce78ce5610fe6ca1fc389b4857432d962276a"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"f933cb691a573b380e65c97c96c56bb4ca5af52f","unresolved":false,"context_lines":[{"line_number":131,"context_line":"        msg \u003d _(\u0027Unable to download image.\u0027)"},{"line_number":132,"context_line":"        url \u003d reverse(\u0027horizon:project:images:index\u0027)"},{"line_number":133,"context_line":"        messages.error(request, _(\u0027Error downloading image file: %s\u0027) % e)"},{"line_number":134,"context_line":"        exceptions.handle(request, msg, redirect\u003durl)"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba7be1f8_9e9bc971","line":134,"updated":"2015-02-27 13:26:20.000000000","message":"exception.handle() displays an error message with \"msg\".\nWe will see two error boxes from L.133 and L.134.\nThe first one looks unnecessary. If we can identify more detail error from a type of exception, we can display more specific error message and it would be nice.","commit_id":"5fa2718561a68f38cad5410a0c4755e806b95942"},{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"275764eb0595ffadc5951123b3aef00334af445f","unresolved":false,"context_lines":[{"line_number":131,"context_line":"        msg \u003d _(\u0027Unable to download image.\u0027)"},{"line_number":132,"context_line":"        url \u003d reverse(\u0027horizon:project:images:index\u0027)"},{"line_number":133,"context_line":"        messages.error(request, _(\u0027Error downloading image file: %s\u0027) % e)"},{"line_number":134,"context_line":"        exceptions.handle(request, msg, redirect\u003durl)"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_ca6391db","line":134,"in_reply_to":"ba7be1f8_9e9bc971","updated":"2015-03-05 15:18:10.000000000","message":"Done","commit_id":"5fa2718561a68f38cad5410a0c4755e806b95942"},{"author":{"_account_id":9981,"name":"Doug Fish","email":"drfish@us.ibm.com","username":"doug-fish"},"change_message_id":"b143ab79d748cfa80251e848a852f01edf63f17f","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        response[\u0027Content-Length\u0027] \u003d image.size"},{"line_number":128,"context_line":"        return response"},{"line_number":129,"context_line":"    except Exception as e:"},{"line_number":130,"context_line":"        msg \u003d _(\u0027Unable to download image (error: %s)\u0027) % e"},{"line_number":131,"context_line":"        url \u003d reverse(\u0027horizon:project:images:index\u0027)"},{"line_number":132,"context_line":"        exceptions.handle(request, msg, redirect\u003durl)"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a80dd14_120da0e9","line":130,"updated":"2015-03-06 16:28:45.000000000","message":"Exception messages aren\u0027t shown to users in Horizon.  Some background: https://blueprints.launchpad.net/horizon/+spec/improve-error-message-details-for-usability","commit_id":"9b015ef9efdf6699616a4b3860476352cbedaec9"},{"author":{"_account_id":8876,"name":"Romain Hardouin","email":"romain_hardouin@yahoo.fr","username":"romainh"},"change_message_id":"20002a1d830bb8d70f2a2f5f86cdfb61d31f6c3f","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        response[\u0027Content-Length\u0027] \u003d image.size"},{"line_number":128,"context_line":"        return response"},{"line_number":129,"context_line":"    except Exception as e:"},{"line_number":130,"context_line":"        msg \u003d _(\u0027Unable to download image (error: %s)\u0027) % e"},{"line_number":131,"context_line":"        url \u003d reverse(\u0027horizon:project:images:index\u0027)"},{"line_number":132,"context_line":"        exceptions.handle(request, msg, redirect\u003durl)"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a80dd14_830b0429","line":130,"in_reply_to":"9a80dd14_120da0e9","updated":"2015-03-06 17:49:27.000000000","message":"@Doug: which kind of exception would you catch? HttpNotFound?\nOtherwise, I don\u0027t see how can we do better. IMHO, \"Unable to download image.\" is worst than a message containing the error which may (or may not, I agree) help the end user to understand what happens.","commit_id":"9b015ef9efdf6699616a4b3860476352cbedaec9"},{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"0c5f0ba96f90bb494e31cfbe92b30ef95ddec0a4","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        response[\u0027Content-Length\u0027] \u003d image.size"},{"line_number":128,"context_line":"        return response"},{"line_number":129,"context_line":"    except Exception as e:"},{"line_number":130,"context_line":"        msg \u003d _(\u0027Unable to download image (error: %s)\u0027) % e"},{"line_number":131,"context_line":"        url \u003d reverse(\u0027horizon:project:images:index\u0027)"},{"line_number":132,"context_line":"        exceptions.handle(request, msg, redirect\u003durl)"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a80dd14_92798bca","line":130,"in_reply_to":"9a80dd14_7e25c307","updated":"2015-03-06 18:35:06.000000000","message":"Akihiro, so your point being here is? Should I keep as is or change it to something else and what?","commit_id":"9b015ef9efdf6699616a4b3860476352cbedaec9"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"e6531f373da426852ceb679177ecf4d201992f2b","unresolved":false,"context_lines":[{"line_number":127,"context_line":"        response[\u0027Content-Length\u0027] \u003d image.size"},{"line_number":128,"context_line":"        return response"},{"line_number":129,"context_line":"    except Exception as e:"},{"line_number":130,"context_line":"        msg \u003d _(\u0027Unable to download image (error: %s)\u0027) % e"},{"line_number":131,"context_line":"        url \u003d reverse(\u0027horizon:project:images:index\u0027)"},{"line_number":132,"context_line":"        exceptions.handle(request, msg, redirect\u003durl)"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a80dd14_7e25c307","line":130,"in_reply_to":"9a80dd14_830b0429","updated":"2015-03-06 18:13:54.000000000","message":"We receive two oppsite bug reports: (a) error messages from Horizon are too generic and we cannot know root causes, and (b) Horizon displays too complicated error messages (which are from backend services).\n\nIMO, Unless error message is too ugly and complicated to regular users, it is better to show an exception message from a backend service.\n\nI heard from users that we cannot know error reasons from Horizon and we cannot solve problems. Only CLI tells us a root cause. I think it is a bad user experience and hiding message makes the situation worse.","commit_id":"9b015ef9efdf6699616a4b3860476352cbedaec9"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"4ea28164883bd96646ce93de1177c98fbb97b338","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        image \u003d api.glance.image_get(request, kwargs[\u0027image_id\u0027])"},{"line_number":121,"context_line":"        image_format \u003d getattr(image, \u0027disk_format\u0027, \u0027data\u0027)"},{"line_number":122,"context_line":"        response \u003d http.StreamingHttpResponse("},{"line_number":123,"context_line":"            image.data(),"},{"line_number":124,"context_line":"            content_type\u003d\u0027application/octet-stream\u0027)"},{"line_number":125,"context_line":"        response[\u0027Content-Disposition\u0027] \u003d (\u0027attachment; filename\u003d\"%s.%s\"\u0027 %"},{"line_number":126,"context_line":"                                           (kwargs[\u0027image_id\u0027], image_format))"}],"source_content_type":"text/x-python","patch_set":12,"id":"9a80dd14_caabe373","line":123,"updated":"2015-03-10 14:26:47.000000000","message":"On inspection of the documented information/object that the python glance client is supposed to return I can not see a valid attribute/function called data, is this the actual data, a URI or something else?\nI have tested it and I can see that it works as is, but I want to confirm with you that we aren’t loading all the data into the horizon server memory or disk before serving it to the client because some images can get up to many GBs so this wouldn\u0027t be efficient compared with redirecting the user and letting the glance server serve the files.","commit_id":"a29e4830dc9d6bd31fadf8c3951f524c57f56baa"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"3942b206613a885e17a248989b997bbefb313577","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        image \u003d api.glance.image_get(request, kwargs[\u0027image_id\u0027])"},{"line_number":121,"context_line":"        image_format \u003d getattr(image, \u0027disk_format\u0027, \u0027data\u0027)"},{"line_number":122,"context_line":"        response \u003d http.StreamingHttpResponse("},{"line_number":123,"context_line":"            image.data(),"},{"line_number":124,"context_line":"            content_type\u003d\u0027application/octet-stream\u0027)"},{"line_number":125,"context_line":"        response[\u0027Content-Disposition\u0027] \u003d (\u0027attachment; filename\u003d\"%s.%s\"\u0027 %"},{"line_number":126,"context_line":"                                           (kwargs[\u0027image_id\u0027], image_format))"}],"source_content_type":"text/x-python","patch_set":12,"id":"9a80dd14_2dbad9c0","line":123,"in_reply_to":"9a80dd14_2d03b90e","updated":"2015-03-10 14:43:56.000000000","message":"Ah, I see :) thanks for the quick reply, I was looking at the glance client v2 support because the API reference page said v2 was a supported API, that version doesn\u0027t seem to implement this feature as it seems to build the object it returns from the glance schema for images. I\u0027m not sure what version of the API we\u0027re meant to support here but if we want to support v2 things will need tweaking in the future.","commit_id":"a29e4830dc9d6bd31fadf8c3951f524c57f56baa"},{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"d92b96f9bad0a12c0466a282deb8eaee9ea619b0","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        image \u003d api.glance.image_get(request, kwargs[\u0027image_id\u0027])"},{"line_number":121,"context_line":"        image_format \u003d getattr(image, \u0027disk_format\u0027, \u0027data\u0027)"},{"line_number":122,"context_line":"        response \u003d http.StreamingHttpResponse("},{"line_number":123,"context_line":"            image.data(),"},{"line_number":124,"context_line":"            content_type\u003d\u0027application/octet-stream\u0027)"},{"line_number":125,"context_line":"        response[\u0027Content-Disposition\u0027] \u003d (\u0027attachment; filename\u003d\"%s.%s\"\u0027 %"},{"line_number":126,"context_line":"                                           (kwargs[\u0027image_id\u0027], image_format))"}],"source_content_type":"text/x-python","patch_set":12,"id":"9a80dd14_f0b97616","line":123,"in_reply_to":"9a80dd14_2dbad9c0","updated":"2015-03-10 14:54:04.000000000","message":"Correct, Horizon at the moment uses v1 from what I can see. v2 also supports downloading image:\n\nShell: https://github.com/openstack/python-glanceclient/blob/master/glanceclient/v2/shell.py#L235\n\nLibrary: https://github.com/openstack/python-glanceclient/blob/master/glanceclient/v2/images.py#L124","commit_id":"a29e4830dc9d6bd31fadf8c3951f524c57f56baa"},{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"7a15a0a1e3554430ef85be553b136e339a75f78b","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        image \u003d api.glance.image_get(request, kwargs[\u0027image_id\u0027])"},{"line_number":121,"context_line":"        image_format \u003d getattr(image, \u0027disk_format\u0027, \u0027data\u0027)"},{"line_number":122,"context_line":"        response \u003d http.StreamingHttpResponse("},{"line_number":123,"context_line":"            image.data(),"},{"line_number":124,"context_line":"            content_type\u003d\u0027application/octet-stream\u0027)"},{"line_number":125,"context_line":"        response[\u0027Content-Disposition\u0027] \u003d (\u0027attachment; filename\u003d\"%s.%s\"\u0027 %"},{"line_number":126,"context_line":"                                           (kwargs[\u0027image_id\u0027], image_format))"}],"source_content_type":"text/x-python","patch_set":12,"id":"9a80dd14_2d03b90e","line":123,"in_reply_to":"9a80dd14_caabe373","updated":"2015-03-10 14:34:28.000000000","message":"Sam, no, horizon does not load all data before sending to the user. The data function (https://github.com/openstack/python-glanceclient/blob/master/glanceclient/v1/images.py#L55) calls ImageManager.data (https://github.com/openstack/python-glanceclient/blob/master/glanceclient/v1/images.py#L134) which returns an iterable object. StreamingHttpResponse uses it to cache chunks of data at a time and sends to the user.","commit_id":"a29e4830dc9d6bd31fadf8c3951f524c57f56baa"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"6b2482770166cb0d3d9c0777fb9d63d6853a76d8","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        image \u003d api.glance.image_get(request, kwargs[\u0027image_id\u0027])"},{"line_number":121,"context_line":"        image_format \u003d getattr(image, \u0027disk_format\u0027, \u0027data\u0027)"},{"line_number":122,"context_line":"        response \u003d http.StreamingHttpResponse("},{"line_number":123,"context_line":"            image.data(),"},{"line_number":124,"context_line":"            content_type\u003d\u0027application/octet-stream\u0027)"},{"line_number":125,"context_line":"        response[\u0027Content-Disposition\u0027] \u003d (\u0027attachment; filename\u003d\"%s.%s\"\u0027 %"},{"line_number":126,"context_line":"                                           (kwargs[\u0027image_id\u0027], image_format))"}],"source_content_type":"text/x-python","patch_set":12,"id":"9a80dd14_b6461620","line":123,"in_reply_to":"9a80dd14_d091d2f2","updated":"2015-03-10 15:27:35.000000000","message":"Sam, are you saying we need to add such method in this patch, or are you talking about a future plan?\nI am spending quite busy days during Kilo and am not familiar with the status of glance v2 API support in Horizon at the moment.","commit_id":"a29e4830dc9d6bd31fadf8c3951f524c57f56baa"},{"author":{"_account_id":6637,"name":"Sam Betts","email":"sam@code-smash.net","username":"sambetts"},"change_message_id":"3b5fe1418a1a485a9babc803109517435823492f","unresolved":false,"context_lines":[{"line_number":120,"context_line":"        image \u003d api.glance.image_get(request, kwargs[\u0027image_id\u0027])"},{"line_number":121,"context_line":"        image_format \u003d getattr(image, \u0027disk_format\u0027, \u0027data\u0027)"},{"line_number":122,"context_line":"        response \u003d http.StreamingHttpResponse("},{"line_number":123,"context_line":"            image.data(),"},{"line_number":124,"context_line":"            content_type\u003d\u0027application/octet-stream\u0027)"},{"line_number":125,"context_line":"        response[\u0027Content-Disposition\u0027] \u003d (\u0027attachment; filename\u003d\"%s.%s\"\u0027 %"},{"line_number":126,"context_line":"                                           (kwargs[\u0027image_id\u0027], image_format))"}],"source_content_type":"text/x-python","patch_set":12,"id":"9a80dd14_d091d2f2","line":123,"in_reply_to":"9a80dd14_f0b97616","updated":"2015-03-10 15:17:03.000000000","message":"It does support it just not through the image object returned by image_get, we\u0027d have to add a new function to openstack_dashboard/api/glance.py to support it as its a separate glance client call.","commit_id":"a29e4830dc9d6bd31fadf8c3951f524c57f56baa"},{"author":{"_account_id":4264,"name":"Matthias Runge","email":"mrunge@redhat.com","username":"mrunge"},"change_message_id":"3516d50c8174e0ef2345146800bc07fcd3b5adc9","unresolved":false,"context_lines":[{"line_number":126,"context_line":"                                           (kwargs[\u0027image_id\u0027], image_format))"},{"line_number":127,"context_line":"        response[\u0027Content-Length\u0027] \u003d image.size"},{"line_number":128,"context_line":"        return response"},{"line_number":129,"context_line":"    except Exception as e:"},{"line_number":130,"context_line":"        msg \u003d _(\u0027Unable to download image (error: %s)\u0027) % e"},{"line_number":131,"context_line":"        url \u003d reverse(\u0027horizon:project:images:index\u0027)"},{"line_number":132,"context_line":"        exceptions.handle(request, msg, redirect\u003durl)"}],"source_content_type":"text/x-python","patch_set":12,"id":"9a80dd14_8fcaa76c","line":129,"updated":"2015-03-11 13:27:53.000000000","message":"you\u0027re still posting exceptions directly to the user.","commit_id":"a29e4830dc9d6bd31fadf8c3951f524c57f56baa"},{"author":{"_account_id":8512,"name":"Matt Farina","email":"matt@mattfarina.com","username":"mattfarina"},"change_message_id":"9f3482df09bbd830feeab6a33879d32e69fc2299","unresolved":false,"context_lines":[{"line_number":126,"context_line":"                                           (kwargs[\u0027image_id\u0027], image_format))"},{"line_number":127,"context_line":"        response[\u0027Content-Length\u0027] \u003d image.size"},{"line_number":128,"context_line":"        return response"},{"line_number":129,"context_line":"    except Exception as e:"},{"line_number":130,"context_line":"        msg \u003d _(\u0027Unable to download image (error: %s)\u0027) % e"},{"line_number":131,"context_line":"        url \u003d reverse(\u0027horizon:project:images:index\u0027)"},{"line_number":132,"context_line":"        exceptions.handle(request, msg, redirect\u003durl)"}],"source_content_type":"text/x-python","patch_set":12,"id":"9a80dd14_8bd304d4","line":129,"in_reply_to":"9a80dd14_8fcaa76c","updated":"2015-03-13 14:36:30.000000000","message":"@Carlos this is nearly there. Can you provide user friendly error messages? Something that doesn\u0027t pass the exception on to the user.","commit_id":"a29e4830dc9d6bd31fadf8c3951f524c57f56baa"},{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"4478c38bd4d565f180c1a22adbec153ae0756d31","unresolved":false,"context_lines":[{"line_number":126,"context_line":"                                           (kwargs[\u0027image_id\u0027], image_format))"},{"line_number":127,"context_line":"        response[\u0027Content-Length\u0027] \u003d image.size"},{"line_number":128,"context_line":"        return response"},{"line_number":129,"context_line":"    except Exception as e:"},{"line_number":130,"context_line":"        msg \u003d _(\u0027Unable to download image (error: %s)\u0027) % e"},{"line_number":131,"context_line":"        url \u003d reverse(\u0027horizon:project:images:index\u0027)"},{"line_number":132,"context_line":"        exceptions.handle(request, msg, redirect\u003durl)"}],"source_content_type":"text/x-python","patch_set":12,"id":"9a80dd14_706f6f92","line":129,"in_reply_to":"9a80dd14_8fcaa76c","updated":"2015-03-15 17:59:14.000000000","message":"Done","commit_id":"a29e4830dc9d6bd31fadf8c3951f524c57f56baa"},{"author":{"_account_id":8512,"name":"Matt Farina","email":"matt@mattfarina.com","username":"mattfarina"},"change_message_id":"f79bfaf322d8ee1b22d9f1d97fea09eb49230793","unresolved":false,"context_lines":[{"line_number":126,"context_line":"                                           (kwargs[\u0027image_id\u0027], image_format))"},{"line_number":127,"context_line":"        response[\u0027Content-Length\u0027] \u003d image.size"},{"line_number":128,"context_line":"        return response"},{"line_number":129,"context_line":"    except Exception:"},{"line_number":130,"context_line":"        msg \u003d _(\u0027An error occured during download of image.\u0027)"},{"line_number":131,"context_line":"        url \u003d reverse(\u0027horizon:project:images:index\u0027)"},{"line_number":132,"context_line":"        exceptions.handle(request, msg, redirect\u003durl)"}],"source_content_type":"text/x-python","patch_set":13,"id":"9a80dd14_6d3ad635","line":129,"updated":"2015-03-17 17:40:37.000000000","message":"It would be nice if other exceptions were caught and had user error friendly error messages. https://github.com/openstack/horizon/blob/master/horizon/exceptions.py\n\nThis is something that could see in a follow-up commit.","commit_id":"7aa18e9cd4cb10f3aa2d3339c0a7bd1b782d1844"},{"author":{"_account_id":10442,"name":"Masco Kaliyamoorthy","email":"mkaliyam@redhat.com","username":"masco"},"change_message_id":"396bb0d6a3bea174bfcc5426d47944f40776a08f","unresolved":false,"context_lines":[{"line_number":143,"context_line":"        return response"},{"line_number":144,"context_line":"    except Exception:"},{"line_number":145,"context_line":"        msg \u003d _(\u0027An error occured during download of image.\u0027)"},{"line_number":146,"context_line":"        url \u003d reverse(\u0027horizon:project:images:index\u0027)"},{"line_number":147,"context_line":"        exceptions.handle(request, msg, redirect\u003durl)"}],"source_content_type":"text/x-python","patch_set":16,"id":"ba3cc151_ee4e9ac0","line":146,"updated":"2015-06-30 07:00:53.000000000","message":"hard coding the redirect url is not good idea.\nif you are getting error while downloading the image from admin panel, it will redirect to project panel. which is not the expected behavior. it should redirect to the admin panel image list.","commit_id":"28f9374e968eaab8d6a04877554d99a9fc7fe0bf"}],"openstack_dashboard/dashboards/project/images/tests.py":[{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"f933cb691a573b380e65c97c96c56bb4ca5af52f","unresolved":false,"context_lines":[{"line_number":123,"context_line":"    @test.create_stubs({api.glance: (\u0027image_get\u0027, )})"},{"line_number":124,"context_line":"    def test_download(self):"},{"line_number":125,"context_line":"        image \u003d self.images.first()"},{"line_number":126,"context_line":"        api.glance.image_get(IsA(http.HttpRequest), str(image.id)) \\"},{"line_number":127,"context_line":"            .AndReturn(image)"},{"line_number":128,"context_line":"        self.mox.ReplayAll()"},{"line_number":129,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"ba7be1f8_b38e0626","line":126,"updated":"2015-02-27 13:26:20.000000000","message":"Do we need to use str(image.id) instead of image.id?","commit_id":"5fa2718561a68f38cad5410a0c4755e806b95942"},{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"275764eb0595ffadc5951123b3aef00334af445f","unresolved":false,"context_lines":[{"line_number":123,"context_line":"    @test.create_stubs({api.glance: (\u0027image_get\u0027, )})"},{"line_number":124,"context_line":"    def test_download(self):"},{"line_number":125,"context_line":"        image \u003d self.images.first()"},{"line_number":126,"context_line":"        api.glance.image_get(IsA(http.HttpRequest), str(image.id)) \\"},{"line_number":127,"context_line":"            .AndReturn(image)"},{"line_number":128,"context_line":"        self.mox.ReplayAll()"},{"line_number":129,"context_line":""}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_ea6215d7","line":126,"in_reply_to":"ba7be1f8_b38e0626","updated":"2015-03-05 15:18:10.000000000","message":"Done","commit_id":"5fa2718561a68f38cad5410a0c4755e806b95942"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"f933cb691a573b380e65c97c96c56bb4ca5af52f","unresolved":false,"context_lines":[{"line_number":130,"context_line":"        download_url \u003d reverse(\u0027horizon:project:images:images:download\u0027,"},{"line_number":131,"context_line":"                               args\u003d[image.id])"},{"line_number":132,"context_line":"        res \u003d self.client.get(download_url)"},{"line_number":133,"context_line":"        self.assertEqual(res.content, image.data())"},{"line_number":134,"context_line":"        self.assertTrue(res.has_header, \u0027Content-Disposition\u0027)"},{"line_number":135,"context_line":"        self.assertEqual(res.get(\u0027Content-Length\u0027), image.size)"},{"line_number":136,"context_line":"        expected_name \u003d \u0027%s.%s\u0027 % (image.id, image.disk_format)"}],"source_content_type":"text/x-python","patch_set":7,"id":"ba7be1f8_fe1f6559","line":133,"updated":"2015-02-27 13:26:20.000000000","message":"The direction looks good.\n\nI wonder how data() method works well.\n\"image\" is an object of glanceclient.v1.images.Image() and\nI think when data() method is called manager() in glanceclient is called but None is passed to manager() in openstack_dashboard/test/test_data/glance_data.py....\n\nI think you need to setup mock for image.data() so that it returns a dummy content.","commit_id":"5fa2718561a68f38cad5410a0c4755e806b95942"},{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"275764eb0595ffadc5951123b3aef00334af445f","unresolved":false,"context_lines":[{"line_number":130,"context_line":"        download_url \u003d reverse(\u0027horizon:project:images:images:download\u0027,"},{"line_number":131,"context_line":"                               args\u003d[image.id])"},{"line_number":132,"context_line":"        res \u003d self.client.get(download_url)"},{"line_number":133,"context_line":"        self.assertEqual(res.content, image.data())"},{"line_number":134,"context_line":"        self.assertTrue(res.has_header, \u0027Content-Disposition\u0027)"},{"line_number":135,"context_line":"        self.assertEqual(res.get(\u0027Content-Length\u0027), image.size)"},{"line_number":136,"context_line":"        expected_name \u003d \u0027%s.%s\u0027 % (image.id, image.disk_format)"}],"source_content_type":"text/x-python","patch_set":7,"id":"9a80dd14_4a86c166","line":133,"in_reply_to":"ba7be1f8_fe1f6559","updated":"2015-03-05 15:18:10.000000000","message":"I think I\u0027ve address this problem in patchset 8. Let me know if it\u0027s okay for you.","commit_id":"5fa2718561a68f38cad5410a0c4755e806b95942"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"e6531f373da426852ceb679177ecf4d201992f2b","unresolved":false,"context_lines":[{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    @test.create_stubs({api.glance: (\u0027image_get\u0027, )})"},{"line_number":137,"context_line":"    def test_download(self):"},{"line_number":138,"context_line":"        # download image requires django.http.StreamingHttpRespons (\u003e\u003d 1.5)"},{"line_number":139,"context_line":"        if django.VERSION \u003c (1, 5):"},{"line_number":140,"context_line":"            return"},{"line_number":141,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"9a80dd14_12775ba1","line":138,"updated":"2015-03-06 18:13:54.000000000","message":"Respons -\u003e Response\n\n(If skipTest has an appropriate reason, this line seems unnecessary)","commit_id":"9b015ef9efdf6699616a4b3860476352cbedaec9"},{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"0c5f0ba96f90bb494e31cfbe92b30ef95ddec0a4","unresolved":false,"context_lines":[{"line_number":135,"context_line":""},{"line_number":136,"context_line":"    @test.create_stubs({api.glance: (\u0027image_get\u0027, )})"},{"line_number":137,"context_line":"    def test_download(self):"},{"line_number":138,"context_line":"        # download image requires django.http.StreamingHttpRespons (\u003e\u003d 1.5)"},{"line_number":139,"context_line":"        if django.VERSION \u003c (1, 5):"},{"line_number":140,"context_line":"            return"},{"line_number":141,"context_line":""}],"source_content_type":"text/x-python","patch_set":11,"id":"9a80dd14_124d9b9a","line":138,"in_reply_to":"9a80dd14_12775ba1","updated":"2015-03-06 18:35:06.000000000","message":"Done","commit_id":"9b015ef9efdf6699616a4b3860476352cbedaec9"},{"author":{"_account_id":841,"name":"Akihiro Motoki","email":"amotoki@gmail.com","username":"amotoki"},"change_message_id":"e6531f373da426852ceb679177ecf4d201992f2b","unresolved":false,"context_lines":[{"line_number":137,"context_line":"    def test_download(self):"},{"line_number":138,"context_line":"        # download image requires django.http.StreamingHttpRespons (\u003e\u003d 1.5)"},{"line_number":139,"context_line":"        if django.VERSION \u003c (1, 5):"},{"line_number":140,"context_line":"            return"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"        image \u003d self.images.first()"},{"line_number":143,"context_line":"        api.glance.image_get(IsA(http.HttpRequest), image.id).AndReturn(image)"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a80dd14_322e1f93","line":140,"updated":"2015-03-06 18:13:54.000000000","message":"Please use self.skipTest rather than reporting a success.\n\n  self.skipTest(\u0027StreamingHttpResponse requires Django 1.5 or later\u0027)","commit_id":"9b015ef9efdf6699616a4b3860476352cbedaec9"},{"author":{"_account_id":6469,"name":"Carlos Gonçalves","display_name":"Carlos Goncalves","email":"cgoncalves@redhat.com","username":"cgoncalves"},"change_message_id":"0c5f0ba96f90bb494e31cfbe92b30ef95ddec0a4","unresolved":false,"context_lines":[{"line_number":137,"context_line":"    def test_download(self):"},{"line_number":138,"context_line":"        # download image requires django.http.StreamingHttpRespons (\u003e\u003d 1.5)"},{"line_number":139,"context_line":"        if django.VERSION \u003c (1, 5):"},{"line_number":140,"context_line":"            return"},{"line_number":141,"context_line":""},{"line_number":142,"context_line":"        image \u003d self.images.first()"},{"line_number":143,"context_line":"        api.glance.image_get(IsA(http.HttpRequest), image.id).AndReturn(image)"}],"source_content_type":"text/x-python","patch_set":11,"id":"9a80dd14_5243936b","line":140,"in_reply_to":"9a80dd14_322e1f93","updated":"2015-03-06 18:35:06.000000000","message":"Done","commit_id":"9b015ef9efdf6699616a4b3860476352cbedaec9"}],"openstack_dashboard/dashboards/project/images_and_snapshots/images/views.py":[{"author":{"_account_id":6914,"name":"Tatiana Ovchinnikova","email":"t.v.ovtchinnikova@gmail.com","username":"tmazur"},"change_message_id":"8ef3dad3fd2f466bff54b75279b400ab44d89bb3","unresolved":false,"context_lines":[{"line_number":109,"context_line":"        image \u003d api.glance.image_get(request, kwargs[\u0027image_id\u0027])"},{"line_number":110,"context_line":"        image_format \u003d getattr(image, \u0027disk_format\u0027, \u0027data\u0027)"},{"line_number":111,"context_line":"        response \u003d http.StreamingHttpResponse(image.data(),"},{"line_number":112,"context_line":"                                       content_type\u003d\u0027application/octet-stream\u0027)"},{"line_number":113,"context_line":"        response[\u0027Content-Disposition\u0027] \u003d (\u0027attachment; filename\u003d\"%s.%s\"\u0027"},{"line_number":114,"context_line":"                                           % (kwargs[\u0027image_id\u0027], image_format)"},{"line_number":115,"context_line":"                                           )"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUX%2F%2BnjE%3D","line":112,"updated":"2014-02-20 07:06:14.000000000","message":"Strange indentation here.","commit_id":"0dbe21ace6be74990322e1f0dda43b1710963a58"},{"author":{"_account_id":6914,"name":"Tatiana Ovchinnikova","email":"t.v.ovtchinnikova@gmail.com","username":"tmazur"},"change_message_id":"8ef3dad3fd2f466bff54b75279b400ab44d89bb3","unresolved":false,"context_lines":[{"line_number":112,"context_line":"                                       content_type\u003d\u0027application/octet-stream\u0027)"},{"line_number":113,"context_line":"        response[\u0027Content-Disposition\u0027] \u003d (\u0027attachment; filename\u003d\"%s.%s\"\u0027"},{"line_number":114,"context_line":"                                           % (kwargs[\u0027image_id\u0027], image_format)"},{"line_number":115,"context_line":"                                           )"},{"line_number":116,"context_line":"        response[\u0027Content-Length\u0027] \u003d str(len(image.data()))"},{"line_number":117,"context_line":"        return response"},{"line_number":118,"context_line":"    except Exception as e:"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAUX%2F%2BniI%3D","line":115,"updated":"2014-02-20 07:06:14.000000000","message":"I think backslash after \"\u003d\" would make this more readable.","commit_id":"0dbe21ace6be74990322e1f0dda43b1710963a58"}]}
