)]}'
{"marconiclient/auth/__init__.py":[{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"633f2c5a18832afbf2f541e90f52f315b0f0ed79","unresolved":false,"context_lines":[{"line_number":30,"context_line":"}"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"if keystone:"},{"line_number":33,"context_line":"    _BACKENDS[\u0027keystone\u0027] \u003d keystone.KeystoneAuth"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def get_backend(backend\u003d\u0027noauth\u0027, options\u003dNone):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F%2BvXg%3D","line":33,"updated":"2013-11-22 19:00:55.000000000","message":"I don\u0027t see why we would ever support anything besides noauth and keystone. Keystone supports multiple backends already, so we don\u0027t have to.","commit_id":"d1a0c1f40574192d0ad5bb3943f7109496a622e5"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"76a0a6aecd26ed2e345a9549cb0c2df325f31ad5","unresolved":false,"context_lines":[{"line_number":30,"context_line":"}"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"if keystone:"},{"line_number":33,"context_line":"    _BACKENDS[\u0027keystone\u0027] \u003d keystone.KeystoneAuth"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def get_backend(backend\u003d\u0027noauth\u0027, options\u003dNone):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F%2BdhU%3D","line":33,"in_reply_to":"AAAATn%2F%2Bi0M%3D","updated":"2013-11-25 20:13:50.000000000","message":"OK, I\u0027m fine with addressing this in a future patch if/when needed; but I think we should resist exposing this pluggability to the user unless we get a lot of people asking for it. Keystone itself already offers an abstraction in front of different auth backends.","commit_id":"d1a0c1f40574192d0ad5bb3943f7109496a622e5"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"1cf81e4045589c19bf384c6fa07bea72691bb23a","unresolved":false,"context_lines":[{"line_number":30,"context_line":"}"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"if keystone:"},{"line_number":33,"context_line":"    _BACKENDS[\u0027keystone\u0027] \u003d keystone.KeystoneAuth"},{"line_number":34,"context_line":""},{"line_number":35,"context_line":""},{"line_number":36,"context_line":"def get_backend(backend\u003d\u0027noauth\u0027, options\u003dNone):"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F%2Bi0M%3D","line":33,"in_reply_to":"AAAATn%2F%2BvXg%3D","updated":"2013-11-24 15:40:42.000000000","message":"This if is mostly needed because of Keystone\u0027s PY3K incompatibility.\n\nI don\u0027t think there\u0027s a strong need to support external auth backends. However, the idea behind this was to allow users to plug their auth backend.\n\nAs it is right now, it doesn\u0027t allow the user to do much - _BACKENDS is private - but eventually, it\u0027ll expose a function that will allow users to register their auth backends.\n\nI kinda agree on the YAGNI warning here because of the base class and the other 2 classes inheriting from it but, as it is right now, it just does what we need to without allowing the users to do more, at least not \u0027legally\u0027. This patch also removes the cli option that would have allowed the user to choose the auth backend from the CLI.\n\nAll that being said, keystone\u0027s PY3K incompatibility is something that we should take under consideration here. If users wants to use PY3K, they won\u0027t be able to use keystone\u0027s auth from the client. \n\nWe should revisit this code / idea, perhaps in a separate patch.","commit_id":"d1a0c1f40574192d0ad5bb3943f7109496a622e5"},{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"46f471f95063cca4c01a58e10e5131d9bac37923","unresolved":false,"context_lines":[{"line_number":38,"context_line":""},{"line_number":39,"context_line":"    :params backend: The backend name to load."},{"line_number":40,"context_line":"        Default: `noauth`"},{"line_number":41,"context_line":"    :type backend: `six.string_types`"},{"line_number":42,"context_line":"    :param options: Options to pass to the Auth"},{"line_number":43,"context_line":"        backend. Refer to the backend for more info."},{"line_number":44,"context_line":"    :type options: `dict`"}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F%2B0xU%3D","line":41,"updated":"2013-11-19 17:27:29.000000000","message":"Consider replacing this string parameter with an enum, since the universe of authentication backends will necessarily be restricted: https://pypi.python.org/pypi/enum34/","commit_id":"d1a0c1f40574192d0ad5bb3943f7109496a622e5"}],"marconiclient/queues/v1/client.py":[{"author":{"_account_id":6944,"name":"Allele Dev","email":"cpp.cabrera@gmail.com","username":"cpp-cabrera"},"change_message_id":"46f471f95063cca4c01a58e10e5131d9bac37923","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        self.api_version \u003d version"},{"line_number":43,"context_line":"        self.auth_opts \u003d self.conf.get(\u0027auth_opts\u0027, {})"},{"line_number":44,"context_line":"        self.client_uuid \u003d self.conf.get(\u0027client_uuid\u0027,"},{"line_number":45,"context_line":"                                         uuid.uuid4().hex)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def transport(self):"},{"line_number":48,"context_line":"        \"\"\"Gets a transport based the api url and version.\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F%2B0u0%3D","line":45,"updated":"2013-11-19 17:27:29.000000000","message":"Cool - I like the autogenerated uuid. :)","commit_id":"d1a0c1f40574192d0ad5bb3943f7109496a622e5"},{"author":{"_account_id":6427,"name":"Kurt Griffiths","email":"kurt.griffiths@rackspace.com","username":"kgriffs"},"change_message_id":"633f2c5a18832afbf2f541e90f52f315b0f0ed79","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        self.api_version \u003d version"},{"line_number":43,"context_line":"        self.auth_opts \u003d self.conf.get(\u0027auth_opts\u0027, {})"},{"line_number":44,"context_line":"        self.client_uuid \u003d self.conf.get(\u0027client_uuid\u0027,"},{"line_number":45,"context_line":"                                         uuid.uuid4().hex)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def transport(self):"},{"line_number":48,"context_line":"        \"\"\"Gets a transport based the api url and version.\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F%2BlrY%3D","line":45,"in_reply_to":"AAAATn%2F%2B0u0%3D","updated":"2013-11-22 19:00:55.000000000","message":"Agreed. For most cases, it is fine not to persist between restarts. Once in a while you may have a client that shuts down but then boots back up and is listening on the same queue and gets duplicate/echo\u0027d messages that haven\u0027t expired in the interim, but it is an edge case.","commit_id":"d1a0c1f40574192d0ad5bb3943f7109496a622e5"},{"author":{"_account_id":6159,"name":"Flavio Percoco Premoli","display_name":"flaper87","email":"flavio.percoco@flyrlabs.com","username":"flaper87"},"change_message_id":"1cf81e4045589c19bf384c6fa07bea72691bb23a","unresolved":false,"context_lines":[{"line_number":42,"context_line":"        self.api_version \u003d version"},{"line_number":43,"context_line":"        self.auth_opts \u003d self.conf.get(\u0027auth_opts\u0027, {})"},{"line_number":44,"context_line":"        self.client_uuid \u003d self.conf.get(\u0027client_uuid\u0027,"},{"line_number":45,"context_line":"                                         uuid.uuid4().hex)"},{"line_number":46,"context_line":""},{"line_number":47,"context_line":"    def transport(self):"},{"line_number":48,"context_line":"        \"\"\"Gets a transport based the api url and version.\"\"\""}],"source_content_type":"text/x-python","patch_set":2,"id":"AAAATn%2F%2Bi0E%3D","line":45,"in_reply_to":"AAAATn%2F%2BlrY%3D","updated":"2013-11-24 15:40:42.000000000","message":"Indeed.\n\nI\u0027d also leave the `UUID` persistence up to the user of the library. I expect the CLI tool to expose an `--client-uuid` parameter. I\u0027d also suggest users to always generate their own, unless they really don\u0027t care about the benefits behind the `client-uuid`","commit_id":"d1a0c1f40574192d0ad5bb3943f7109496a622e5"}]}
