)]}'
{"barbicanclient/barbican_cli/containers.py":[{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"9d9657786b88f6166d5d1e882fd28bf670e51410","unresolved":false,"context_lines":[{"line_number":48,"context_line":"                formatted_secrets,"},{"line_number":49,"context_line":"                formatted_consumers,"},{"line_number":50,"context_line":"                )"},{"line_number":51,"context_line":"        return data"},{"line_number":52,"context_line":""},{"line_number":53,"context_line":""},{"line_number":54,"context_line":"class RSAContainerFormatter(EntityFormatter):"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa98f980_9de5243a","line":51,"updated":"2014-09-03 06:46:56.000000000","message":"By this I understand that the table with the Container will also have nested (tables perhaps) with the secrets and the consumers... This might be quite verbose. An alternative would be to just print the secret href and the consumers href, and it would be an extra step for the user to fetch this. Any thoughts?","commit_id":"d2ed5fa2f7b9425e64fe43aac1fea64298a99fa6"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"336032de740a30ed745783d0c86dbea92ddb8d52","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        if entity.consumers:"},{"line_number":41,"context_line":"            formatted_consumers \u003d \u0027\\n\u0027.join((str(c) for c in entity.consumers))"},{"line_number":42,"context_line":"        else:"},{"line_number":43,"context_line":"            formatted_consumers \u003d None"},{"line_number":44,"context_line":"        data \u003d (entity.container_ref,"},{"line_number":45,"context_line":"                entity.name,"},{"line_number":46,"context_line":"                entity.created,"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa98f980_c3ec422c","line":43,"updated":"2014-09-10 18:25:06.000000000","message":"Depending on the end result of dealing with Juan\u0027s comments, you could make this look cleaner by doing:\n\n    formatted_secrets \u003d None\n    formatted_consumers \u003d None\n\n\n    if entity.secrets:\n        formatted_secrets \u003d \u0027\\n\u0027.join((str(s) for s in entity.secrets))\n            \n    if entity.consumers:\n        formatted_consumers \u003d \u0027\\n\u0027.join((str(c) for c in entity.consumers))","commit_id":"6af387d1e1768e36fc2cf121d3e3b085666baa19"},{"author":{"_account_id":10273,"name":"Adam Harwell","email":"flux.adam@gmail.com","username":"rm_you"},"change_message_id":"1d867f145c6fe45c5497470e3396659a855f8fe2","unresolved":false,"context_lines":[{"line_number":40,"context_line":"        if entity.consumers:"},{"line_number":41,"context_line":"            formatted_consumers \u003d \u0027\\n\u0027.join((str(c) for c in entity.consumers))"},{"line_number":42,"context_line":"        else:"},{"line_number":43,"context_line":"            formatted_consumers \u003d None"},{"line_number":44,"context_line":"        data \u003d (entity.container_ref,"},{"line_number":45,"context_line":"                entity.name,"},{"line_number":46,"context_line":"                entity.created,"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa98f980_c398c21d","line":43,"in_reply_to":"fa98f980_c3ec422c","updated":"2014-09-10 18:39:31.000000000","message":"Yeah, I always debate whether I want to do it that way or not, but I think this is probably a good case for it. I\u0027ll switch it to your suggestion.","commit_id":"6af387d1e1768e36fc2cf121d3e3b085666baa19"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"336032de740a30ed745783d0c86dbea92ddb8d52","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        if entity.consumers:"},{"line_number":70,"context_line":"            formatted_consumers \u003d \u0027\\n\u0027.join((str(c) for c in entity.consumers))"},{"line_number":71,"context_line":"        else:"},{"line_number":72,"context_line":"            formatted_consumers \u003d None"},{"line_number":73,"context_line":"        data \u003d (entity.container_ref,"},{"line_number":74,"context_line":"                entity.name,"},{"line_number":75,"context_line":"                entity.created,"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa98f980_e3f30608","line":72,"range":{"start_line":72,"start_character":12,"end_line":72,"end_character":31},"updated":"2014-09-10 18:25:06.000000000","message":"Same style as above?","commit_id":"6af387d1e1768e36fc2cf121d3e3b085666baa19"},{"author":{"_account_id":10273,"name":"Adam Harwell","email":"flux.adam@gmail.com","username":"rm_you"},"change_message_id":"1d867f145c6fe45c5497470e3396659a855f8fe2","unresolved":false,"context_lines":[{"line_number":69,"context_line":"        if entity.consumers:"},{"line_number":70,"context_line":"            formatted_consumers \u003d \u0027\\n\u0027.join((str(c) for c in entity.consumers))"},{"line_number":71,"context_line":"        else:"},{"line_number":72,"context_line":"            formatted_consumers \u003d None"},{"line_number":73,"context_line":"        data \u003d (entity.container_ref,"},{"line_number":74,"context_line":"                entity.name,"},{"line_number":75,"context_line":"                entity.created,"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa98f980_639396fa","line":72,"in_reply_to":"fa98f980_e3f30608","updated":"2014-09-10 18:39:31.000000000","message":"Done","commit_id":"6af387d1e1768e36fc2cf121d3e3b085666baa19"},{"author":{"_account_id":7262,"name":"John Vrbanac","email":"john.vrbanac@linux.com","username":"john.vrbanac"},"change_message_id":"336032de740a30ed745783d0c86dbea92ddb8d52","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                entity.status,"},{"line_number":77,"context_line":"                entity.type,"},{"line_number":78,"context_line":"                (entity.public_key.secret_ref"},{"line_number":79,"context_line":"                 if entity.public_key else None),"},{"line_number":80,"context_line":"                (entity.private_key.secret_ref"},{"line_number":81,"context_line":"                 if entity.private_key else None),"},{"line_number":82,"context_line":"                (entity.private_key_passphrase.secret_ref"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa98f980_635556c5","line":79,"updated":"2014-09-10 18:25:06.000000000","message":"This feels uncomfortable to read. Wouldn\u0027t be cleaner to read if these were predefined instead of having a bunch of inline conditionals within the creation of a giant tuple.","commit_id":"6af387d1e1768e36fc2cf121d3e3b085666baa19"},{"author":{"_account_id":10273,"name":"Adam Harwell","email":"flux.adam@gmail.com","username":"rm_you"},"change_message_id":"1d867f145c6fe45c5497470e3396659a855f8fe2","unresolved":false,"context_lines":[{"line_number":76,"context_line":"                entity.status,"},{"line_number":77,"context_line":"                entity.type,"},{"line_number":78,"context_line":"                (entity.public_key.secret_ref"},{"line_number":79,"context_line":"                 if entity.public_key else None),"},{"line_number":80,"context_line":"                (entity.private_key.secret_ref"},{"line_number":81,"context_line":"                 if entity.private_key else None),"},{"line_number":82,"context_line":"                (entity.private_key_passphrase.secret_ref"}],"source_content_type":"text/x-python","patch_set":4,"id":"fa98f980_03baca6d","line":79,"in_reply_to":"fa98f980_635556c5","updated":"2014-09-10 18:39:31.000000000","message":"Yeah, I can do that.","commit_id":"6af387d1e1768e36fc2cf121d3e3b085666baa19"}],"barbicanclient/barbican_cli/formatter.py":[{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"9d9657786b88f6166d5d1e882fd28bf670e51410","unresolved":false,"context_lines":[{"line_number":24,"context_line":"        return self.columns, self._get_formatted_data(entity)"},{"line_number":25,"context_line":""},{"line_number":26,"context_line":"    def __str__(self):"},{"line_number":27,"context_line":"        data \u003d self._get_formatted_data(self)"},{"line_number":28,"context_line":"        table \u003d prettytable.PrettyTable(field_names\u003d(\u0027Field\u0027, \u0027Value\u0027),"},{"line_number":29,"context_line":"                                        print_empty\u003dFalse)"},{"line_number":30,"context_line":"        table.padding_width \u003d 1"}],"source_content_type":"text/x-python","patch_set":1,"id":"fa98f980_1d0e94e5","line":27,"updated":"2014-09-03 06:46:56.000000000","message":"uhm, this approach seems to now explicitly require that the Formatter be used as a mixin, if you think this is the right approach, this should be documented properly in the __str__function.","commit_id":"d2ed5fa2f7b9425e64fe43aac1fea64298a99fa6"}],"barbicanclient/containers.py":[{"author":{"_account_id":10873,"name":"Juan Antonio Osorio Robles","email":"jaosorior@redhat.com","username":"ejuaoso"},"change_message_id":"fda80f15ec2049659784fe25f4bab3ef740cea4f","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from barbicanclient import secrets"},{"line_number":20,"context_line":"from barbicanclient.barbican_cli.containers import ("},{"line_number":21,"context_line":"    ContainerFormatter, CertificateContainerFormatter, RSAContainerFormatter"},{"line_number":22,"context_line":")"},{"line_number":23,"context_line":"from barbicanclient.openstack.common.timeutils import parse_isotime"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa98f980_1901f669","line":22,"updated":"2014-09-05 09:23:41.000000000","message":"is this hacking compliant? I think the agreement was to import these in independent lines.","commit_id":"cdfc0f8d122b65e38f7a654829c0d011d09242fe"},{"author":{"_account_id":10273,"name":"Adam Harwell","email":"flux.adam@gmail.com","username":"rm_you"},"change_message_id":"0b10d001e658fc151a4dbe327e160ee4d60e4d22","unresolved":false,"context_lines":[{"line_number":19,"context_line":"from barbicanclient import secrets"},{"line_number":20,"context_line":"from barbicanclient.barbican_cli.containers import ("},{"line_number":21,"context_line":"    ContainerFormatter, CertificateContainerFormatter, RSAContainerFormatter"},{"line_number":22,"context_line":")"},{"line_number":23,"context_line":"from barbicanclient.openstack.common.timeutils import parse_isotime"},{"line_number":24,"context_line":""},{"line_number":25,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"fa98f980_7ed00fc9","line":22,"in_reply_to":"fa98f980_1901f669","updated":"2014-09-05 20:14:50.000000000","message":"I believe so? Hacking\u003d\u003d0.9.2 passed it...","commit_id":"cdfc0f8d122b65e38f7a654829c0d011d09242fe"},{"author":{"_account_id":10273,"name":"Adam Harwell","email":"flux.adam@gmail.com","username":"rm_you"},"change_message_id":"09383e5cf092e49c09e552af3963c751e432ed32","unresolved":false,"context_lines":[{"line_number":197,"context_line":""},{"line_number":198,"context_line":""},{"line_number":199,"context_line":"class RSAContainerFormatter(formatter.EntityFormatter):"},{"line_number":200,"context_line":"    _get_generic_data \u003d ContainerFormatter._get_formatted_data"},{"line_number":201,"context_line":""},{"line_number":202,"context_line":"    def _get_generic_columns(self):"},{"line_number":203,"context_line":"        return ContainerFormatter.columns"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa98f980_5bad9a87","line":200,"updated":"2014-09-10 19:50:50.000000000","message":"This function and the one below it allow the List function to work sanely. It\u0027s not pretty, but it works. If someone has a better idea for how to do this, let me know!","commit_id":"43a527ab17fff63f05cdbf2b39b707d05e97f2fd"}],"barbicanclient/formatter.py":[{"author":{"_account_id":10273,"name":"Adam Harwell","email":"flux.adam@gmail.com","username":"rm_you"},"change_message_id":"09383e5cf092e49c09e552af3963c751e432ed32","unresolved":false,"context_lines":[{"line_number":23,"context_line":"    @staticmethod"},{"line_number":24,"context_line":"    def _list_objects(obj_list):"},{"line_number":25,"context_line":"        columns \u003d []"},{"line_number":26,"context_line":"        data \u003d (obj._get_generic_data() for obj in obj_list)"},{"line_number":27,"context_line":"        if obj_list:"},{"line_number":28,"context_line":"            columns \u003d obj_list[0]._get_generic_columns()"},{"line_number":29,"context_line":"        return columns, data"}],"source_content_type":"text/x-python","patch_set":5,"id":"fa98f980_1b7cf21f","line":26,"updated":"2014-09-10 19:50:50.000000000","message":"These \"_get_generic_data\" and \"_get_generic_columns\" functions become necessary to list out \"typed Containers\" in a sane way, since we no longer have explicit access to the base ContainerFormatter class here when listing Containers.","commit_id":"43a527ab17fff63f05cdbf2b39b707d05e97f2fd"}]}
