)]}'
{"horizon/horizon/dashboards/nova/access_and_security/security_groups/views.py":[{"author":{"_account_id":543,"name":"Tres Henry","username":"tres"},"change_message_id":"10cc7c3c8a144bee753cb4f428b82e3653430e1f","unresolved":false,"context_lines":[{"line_number":76,"context_line":"        if request.is_ajax():"},{"line_number":77,"context_line":"            context[\u0027hide\u0027] \u003d True"},{"line_number":78,"context_line":"            self.template_name \u003d \u0027nova/access_and_security/security_groups\u0027 \\"},{"line_number":79,"context_line":"                                 \u0027/_edit_rules.html\u0027"},{"line_number":80,"context_line":"        return self.render_to_response(context)"},{"line_number":81,"context_line":""},{"line_number":82,"context_line":"    def post(self, request, *args, **kwargs):"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAD3%2F%2F9Io%3D","line":79,"updated":"2012-01-18 00:06:01.000000000","message":"prefer (\u0027nova/access_and_security/security_groups\u0027\n\u0027/_edit_rules.html\u0027)","commit_id":"fa94e16b23f9fbcc30d476f62a0825ad7c3ef3cb"}],"horizon/horizon/dashboards/nova/instances_and_volumes/volumes/tables.py":[{"author":{"_account_id":543,"name":"Tres Henry","username":"tres"},"change_message_id":"10cc7c3c8a144bee753cb4f428b82e3653430e1f","unresolved":false,"context_lines":[{"line_number":65,"context_line":"    attachments \u003d []"},{"line_number":66,"context_line":"    link \u003d \u0027\u003ca href\u003d\"%(url)s\"\u003eInstance %(instance)s\u0026nbsp;\u0027 \\"},{"line_number":67,"context_line":"           \u0027\u003csmall\u003e(%(dev)s)\u003c/small\u003e\u003c/a\u003e\u0027"},{"line_number":68,"context_line":"    # Filter out \"empty\" attachments which the client retruns..."},{"line_number":69,"context_line":"    for attachment in [att for att in volume.attachments if att]:"},{"line_number":70,"context_line":"        url \u003d reverse(\"horizon:nova:instances_and_volumes:instances:detail\","},{"line_number":71,"context_line":"                      args\u003d(attachment[\"serverId\"],))"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAD3%2F%2F9Ic%3D","line":68,"updated":"2012-01-18 00:06:01.000000000","message":"returns","commit_id":"fa94e16b23f9fbcc30d476f62a0825ad7c3ef3cb"}],"horizon/horizon/dashboards/nova/overview/views.py":[{"author":{"_account_id":543,"name":"Tres Henry","username":"tres"},"change_message_id":"10cc7c3c8a144bee753cb4f428b82e3653430e1f","unresolved":false,"context_lines":[{"line_number":58,"context_line":""},{"line_number":59,"context_line":"    ram_unit \u003d \"MB\""},{"line_number":60,"context_line":"    total_ram \u003d getattr(usage, \u0027total_active_ram_size\u0027, 0)"},{"line_number":61,"context_line":"    if total_ram \u003e 999:"},{"line_number":62,"context_line":"        ram_unit \u003d \"GB\""},{"line_number":63,"context_line":"        total_ram /\u003d float(1024)"},{"line_number":64,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAD3%2F%2F9IU%3D","line":61,"updated":"2012-01-18 00:06:01.000000000","message":"should this be 1024 as well (ensuring at least 1 GB if shown as GB)?","commit_id":"fa94e16b23f9fbcc30d476f62a0825ad7c3ef3cb"},{"author":{"_account_id":543,"name":"Tres Henry","username":"tres"},"change_message_id":"10cc7c3c8a144bee753cb4f428b82e3653430e1f","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    total_ram \u003d getattr(usage, \u0027total_active_ram_size\u0027, 0)"},{"line_number":61,"context_line":"    if total_ram \u003e 999:"},{"line_number":62,"context_line":"        ram_unit \u003d \"GB\""},{"line_number":63,"context_line":"        total_ram /\u003d float(1024)"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    instances \u003d []"},{"line_number":66,"context_line":"    terminated \u003d []"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAD3%2F%2F9IQ%3D","line":63,"updated":"2012-01-18 00:06:01.000000000","message":"this could result in more precision than desired. assuming it is rounded in the view?","commit_id":"fa94e16b23f9fbcc30d476f62a0825ad7c3ef3cb"},{"author":{"_account_id":1816,"name":"Gabriel Hurley","email":"gabriel.hurley@nebula.com","username":"gabriel-hurley"},"change_message_id":"e252d0bd82ed9caa9de8268bb7d62fc7ba288928","unresolved":false,"context_lines":[{"line_number":60,"context_line":"    total_ram \u003d getattr(usage, \u0027total_active_ram_size\u0027, 0)"},{"line_number":61,"context_line":"    if total_ram \u003e 999:"},{"line_number":62,"context_line":"        ram_unit \u003d \"GB\""},{"line_number":63,"context_line":"        total_ram /\u003d float(1024)"},{"line_number":64,"context_line":""},{"line_number":65,"context_line":"    instances \u003d []"},{"line_number":66,"context_line":"    terminated \u003d []"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAD3%2F%2F9Hc%3D","line":63,"in_reply_to":"AAAAD3%2F%2F9IQ%3D","updated":"2012-01-18 00:17:17.000000000","message":"Although this predates me, this was originally done to avoid the integer floor division weirdness in Python 2.x. There are better ways to solve this, though. I\u0027ll correct it.","commit_id":"fa94e16b23f9fbcc30d476f62a0825ad7c3ef3cb"}],"horizon/horizon/dashboards/syspanel/overview/views.py":[{"author":{"_account_id":543,"name":"Tres Henry","username":"tres"},"change_message_id":"10cc7c3c8a144bee753cb4f428b82e3653430e1f","unresolved":false,"context_lines":[{"line_number":110,"context_line":"        m \u003d ((date_start.month + 1) % 13)"},{"line_number":111,"context_line":"        if m \u003d\u003d 0:"},{"line_number":112,"context_line":"            m \u003d 1"},{"line_number":113,"context_line":"        return datetime.date(y, m, 1)"},{"line_number":114,"context_line":""},{"line_number":115,"context_line":"    @staticmethod"},{"line_number":116,"context_line":"    def current_month():"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAD3%2F%2F9II%3D","line":113,"updated":"2012-01-18 00:06:01.000000000","message":"might be cleaner to use relativedelta:\n\nfrom dateutil.relativedelta import relativedelta\n\nfirst_of_next_month \u003d date_start + relativedelta(months\u003d+1)\n\nreturn datetime.date(first_of_next_month.year, first_of_next_month.month, 1)","commit_id":"fa94e16b23f9fbcc30d476f62a0825ad7c3ef3cb"}],"horizon/horizon/views/__init__.py":[{"author":{"_account_id":543,"name":"Tres Henry","username":"tres"},"change_message_id":"10cc7c3c8a144bee753cb4f428b82e3653430e1f","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from horizon import exceptions"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"class APIView(generic.TemplateView):"},{"line_number":23,"context_line":"    \"\"\" A quick class-based view for putting API data into a template."},{"line_number":24,"context_line":""},{"line_number":25,"context_line":"    Subclasses must define one method, ``get_data``, and a template name"}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAD3%2F%2F9IA%3D","line":22,"updated":"2012-01-18 00:06:01.000000000","message":"Why is this defined in __init__.py?","commit_id":"fa94e16b23f9fbcc30d476f62a0825ad7c3ef3cb"}]}
