)]}'
{"/COMMIT_MSG":[{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"8ec7e86155d171630c3b9b995258311baa5dd84a","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Adit Sarfaty \u003casarfaty@vmware.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-04-07 15:14:21 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add PortList Opt to support configuration of a list of tcp/ip ports"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Adding a new Opt type PortList which will allow configuration of a list of"},{"line_number":10,"context_line":"tcp/ip ports, including default values and choises, similar to the Port Opt,"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a061dce_d909c296","line":7,"range":{"start_line":7,"start_character":4,"end_line":7,"end_character":16},"updated":"2016-04-07 21:11:20.000000000","message":"NIT: one word","commit_id":"de82f6f595a8f6d7c5c64c805b4583fdfe5a8ccb"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"10ccdc356a5832975f71cf9572859ea505a3b765","unresolved":false,"context_lines":[{"line_number":4,"context_line":"Commit:     Adit Sarfaty \u003casarfaty@vmware.com\u003e"},{"line_number":5,"context_line":"CommitDate: 2016-04-07 15:14:21 +0300"},{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add PortList Opt to support configuration of a list of tcp/ip ports"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Adding a new Opt type PortList which will allow configuration of a list of"},{"line_number":10,"context_line":"tcp/ip ports, including default values and choises, similar to the Port Opt,"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a061dce_b10dbd39","line":7,"range":{"start_line":7,"start_character":4,"end_line":7,"end_character":16},"in_reply_to":"9a061dce_d909c296","updated":"2016-04-09 14:09:33.000000000","message":"Done","commit_id":"de82f6f595a8f6d7c5c64c805b4583fdfe5a8ccb"},{"author":{"_account_id":9796,"name":"ChangBo Guo","email":"glongwave@gmail.com","username":"gcb"},"change_message_id":"a697ce4b9aca8cbc10645764c955db934af03d5c","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add PortList Opt to support configuration of a list of tcp/ip ports"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Adding a new Opt type PortList which will allow configuration of a list of"},{"line_number":10,"context_line":"tcp/ip ports, including default values and choises, similar to the Port Opt,"},{"line_number":11,"context_line":"and validating the minimum and maximum values of the ports"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I83bbec6add8ce2951e94e69ec14bb6d8137d4f0c"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a061dce_1aaf63e4","line":11,"range":{"start_line":9,"start_character":1,"end_line":11,"end_character":58},"updated":"2016-04-09 09:02:26.000000000","message":"Can you describe potential use case, like what project will use it ?","commit_id":"de82f6f595a8f6d7c5c64c805b4583fdfe5a8ccb"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"10ccdc356a5832975f71cf9572859ea505a3b765","unresolved":false,"context_lines":[{"line_number":6,"context_line":""},{"line_number":7,"context_line":"Add PortList Opt to support configuration of a list of tcp/ip ports"},{"line_number":8,"context_line":""},{"line_number":9,"context_line":"Adding a new Opt type PortList which will allow configuration of a list of"},{"line_number":10,"context_line":"tcp/ip ports, including default values and choises, similar to the Port Opt,"},{"line_number":11,"context_line":"and validating the minimum and maximum values of the ports"},{"line_number":12,"context_line":""},{"line_number":13,"context_line":"Change-Id: I83bbec6add8ce2951e94e69ec14bb6d8137d4f0c"}],"source_content_type":"text/x-gerrit-commit-message","patch_set":1,"id":"9a061dce_511d4165","line":11,"range":{"start_line":9,"start_character":1,"end_line":11,"end_character":58},"in_reply_to":"9a061dce_1aaf63e4","updated":"2016-04-09 14:09:33.000000000","message":"Done","commit_id":"de82f6f595a8f6d7c5c64c805b4583fdfe5a8ccb"}],"oslo_config/cfg.py":[{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"8ec7e86155d171630c3b9b995258311baa5dd84a","unresolved":false,"context_lines":[{"line_number":47,"context_line":":mod:`oslo_config.cfg` that set the option `type` as in the following table:"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d  \u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":50,"context_line":"Type                                  Option"},{"line_number":51,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d  \u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":52,"context_line":":class:`oslo_config.types.String`     - :class:`oslo_config.cfg.StrOpt`"},{"line_number":53,"context_line":"                                      - :class:`oslo_config.cfg.SubCommandOpt`"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_598772b4","line":50,"updated":"2016-04-07 21:11:20.000000000","message":"PortListOpt needs to be added here also.","commit_id":"de82f6f595a8f6d7c5c64c805b4583fdfe5a8ccb"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"10ccdc356a5832975f71cf9572859ea505a3b765","unresolved":false,"context_lines":[{"line_number":47,"context_line":":mod:`oslo_config.cfg` that set the option `type` as in the following table:"},{"line_number":48,"context_line":""},{"line_number":49,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d  \u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":50,"context_line":"Type                                  Option"},{"line_number":51,"context_line":"\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d\u003d  \u003d\u003d\u003d\u003d\u003d\u003d"},{"line_number":52,"context_line":":class:`oslo_config.types.String`     - :class:`oslo_config.cfg.StrOpt`"},{"line_number":53,"context_line":"                                      - :class:`oslo_config.cfg.SubCommandOpt`"}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_4e580057","line":50,"in_reply_to":"9a061dce_598772b4","updated":"2016-04-09 14:09:33.000000000","message":"Done","commit_id":"de82f6f595a8f6d7c5c64c805b4583fdfe5a8ccb"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"8ec7e86155d171630c3b9b995258311baa5dd84a","unresolved":false,"context_lines":[{"line_number":1213,"context_line":""},{"line_number":1214,"context_line":"class PortOptBase(Opt):"},{"line_number":1215,"context_line":""},{"line_number":1216,"context_line":"    \"\"\"Base class for PortOpt \u0026 portListOpt classes"},{"line_number":1217,"context_line":""},{"line_number":1218,"context_line":"    \"\"\""},{"line_number":1219,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_390b9e7e","line":1216,"range":{"start_line":1216,"start_character":32,"end_line":1216,"end_character":43},"updated":"2016-04-07 21:11:20.000000000","message":"PortListOpt\n\nAlso, not sure there is much value to a statement like this. Since other subclasses can be added later and this doesn\u0027t describe this class much.","commit_id":"de82f6f595a8f6d7c5c64c805b4583fdfe5a8ccb"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"10ccdc356a5832975f71cf9572859ea505a3b765","unresolved":false,"context_lines":[{"line_number":1213,"context_line":""},{"line_number":1214,"context_line":"class PortOptBase(Opt):"},{"line_number":1215,"context_line":""},{"line_number":1216,"context_line":"    \"\"\"Base class for PortOpt \u0026 portListOpt classes"},{"line_number":1217,"context_line":""},{"line_number":1218,"context_line":"    \"\"\""},{"line_number":1219,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_6e4ea497","line":1216,"range":{"start_line":1216,"start_character":32,"end_line":1216,"end_character":43},"in_reply_to":"9a061dce_390b9e7e","updated":"2016-04-09 14:09:33.000000000","message":"Done","commit_id":"de82f6f595a8f6d7c5c64c805b4583fdfe5a8ccb"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"cee440201947acd6394734aada94643f3d00af31","unresolved":false,"context_lines":[{"line_number":1279,"context_line":"    :param choices: Optional sequence of valid values."},{"line_number":1280,"context_line":"    :param \\*\\*kwargs: arbitrary keyword arguments passed to :class:`Opt`"},{"line_number":1281,"context_line":""},{"line_number":1282,"context_line":"    .. versionadded:: 3.10"},{"line_number":1283,"context_line":"    \"\"\""},{"line_number":1284,"context_line":""},{"line_number":1285,"context_line":"    def __init__(self, name, choices\u003dNone, **kwargs):"}],"source_content_type":"text/x-python","patch_set":3,"id":"5a9d85d2_7f94ad36","line":1282,"range":{"start_line":1282,"start_character":22,"end_line":1282,"end_character":26},"updated":"2016-06-20 17:51:16.000000000","message":"This needs to be 3.12 now","commit_id":"c63663b732ddb6fa252a1cf94f5604d2eb3bcc64"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"6583f73c834616bcb7a59518c65cbd8a646881f2","unresolved":false,"context_lines":[{"line_number":1279,"context_line":"    :param choices: Optional sequence of valid values."},{"line_number":1280,"context_line":"    :param \\*\\*kwargs: arbitrary keyword arguments passed to :class:`Opt`"},{"line_number":1281,"context_line":""},{"line_number":1282,"context_line":"    .. versionadded:: 3.12"},{"line_number":1283,"context_line":"    \"\"\""},{"line_number":1284,"context_line":""},{"line_number":1285,"context_line":"    def __init__(self, name, choices\u003dNone, **kwargs):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3aaa91ec_1add9a14","line":1282,"range":{"start_line":1282,"start_character":22,"end_line":1282,"end_character":26},"updated":"2016-06-28 14:59:48.000000000","message":"should be 3.13 now","commit_id":"96b519104afac4170d1cc8fe13a1b2c21ea5ae53"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"eb423ad0fbd7d72b2883afba17511af5b375c58c","unresolved":false,"context_lines":[{"line_number":1279,"context_line":"    :param choices: Optional sequence of valid values."},{"line_number":1280,"context_line":"    :param \\*\\*kwargs: arbitrary keyword arguments passed to :class:`Opt`"},{"line_number":1281,"context_line":""},{"line_number":1282,"context_line":"    .. versionadded:: 3.12"},{"line_number":1283,"context_line":"    \"\"\""},{"line_number":1284,"context_line":""},{"line_number":1285,"context_line":"    def __init__(self, name, choices\u003dNone, **kwargs):"}],"source_content_type":"text/x-python","patch_set":5,"id":"3aaa91ec_557c1372","line":1282,"range":{"start_line":1282,"start_character":22,"end_line":1282,"end_character":26},"in_reply_to":"3aaa91ec_1add9a14","updated":"2016-06-28 15:06:50.000000000","message":"Done","commit_id":"96b519104afac4170d1cc8fe13a1b2c21ea5ae53"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"e2a5ddcd1aa71e3bbff3cee8aa32ee9be714d6c2","unresolved":false,"context_lines":[{"line_number":1279,"context_line":"    :param choices: Optional sequence of valid values."},{"line_number":1280,"context_line":"    :param \\*\\*kwargs: arbitrary keyword arguments passed to :class:`Opt`"},{"line_number":1281,"context_line":""},{"line_number":1282,"context_line":"    .. versionadded:: 3.13"},{"line_number":1283,"context_line":"    \"\"\""},{"line_number":1284,"context_line":""},{"line_number":1285,"context_line":"    def __init__(self, name, choices\u003dNone, **kwargs):"}],"source_content_type":"text/x-python","patch_set":7,"id":"1aa78d24_0f68ca86","line":1282,"range":{"start_line":1282,"start_character":22,"end_line":1282,"end_character":26},"updated":"2016-07-14 18:30:03.000000000","message":"3.14 now","commit_id":"ebf7a8b17c4c05eb4069e8b711aabf2c3057a3ff"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"959637b1ad54b1a32b7f24466d9b52ddcc3b61c1","unresolved":false,"context_lines":[{"line_number":1279,"context_line":"    :param choices: Optional sequence of valid values."},{"line_number":1280,"context_line":"    :param \\*\\*kwargs: arbitrary keyword arguments passed to :class:`Opt`"},{"line_number":1281,"context_line":""},{"line_number":1282,"context_line":"    .. versionadded:: 3.13"},{"line_number":1283,"context_line":"    \"\"\""},{"line_number":1284,"context_line":""},{"line_number":1285,"context_line":"    def __init__(self, name, choices\u003dNone, **kwargs):"}],"source_content_type":"text/x-python","patch_set":7,"id":"fad55976_fc597c5b","line":1282,"range":{"start_line":1282,"start_character":22,"end_line":1282,"end_character":26},"in_reply_to":"1aa78d24_0f68ca86","updated":"2016-07-17 08:35:35.000000000","message":"Done","commit_id":"ebf7a8b17c4c05eb4069e8b711aabf2c3057a3ff"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"fef22efce731ba455155d57055cda2628b03c321","unresolved":false,"context_lines":[{"line_number":1246,"context_line":"       Added *choices* parameter."},{"line_number":1247,"context_line":"    .. versionchanged:: 3.4"},{"line_number":1248,"context_line":"       Allow port number with 0."},{"line_number":1249,"context_line":"    .. versionchanged:: 3.14"},{"line_number":1250,"context_line":"       Added *min* and *max* parameters."},{"line_number":1251,"context_line":"    \"\"\""},{"line_number":1252,"context_line":""}],"source_content_type":"text/x-python","patch_set":21,"id":"bacf61ea_2417dd55","line":1249,"range":{"start_line":1249,"start_character":24,"end_line":1249,"end_character":28},"updated":"2016-08-02 18:39:04.000000000","message":"Sorry, 3.15 now","commit_id":"3f1fa662c96d5d326c200b31600f806bccd437de"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"2febdf823fcaec47a8c7d0569109fe6fd9f6337c","unresolved":false,"context_lines":[{"line_number":1246,"context_line":"       Added *choices* parameter."},{"line_number":1247,"context_line":"    .. versionchanged:: 3.4"},{"line_number":1248,"context_line":"       Allow port number with 0."},{"line_number":1249,"context_line":"    .. versionchanged:: 3.15"},{"line_number":1250,"context_line":"       Added *min* and *max* parameters."},{"line_number":1251,"context_line":"    \"\"\""},{"line_number":1252,"context_line":""}],"source_content_type":"text/x-python","patch_set":22,"id":"9ad45d7e_5ed7bf4a","line":1249,"range":{"start_line":1249,"start_character":24,"end_line":1249,"end_character":28},"updated":"2016-08-10 15:57:00.000000000","message":"Should be 3.16 now","commit_id":"2d2d426a9b97c8b2605085022ef4520e8e48ed77"}],"oslo_config/tests/test_cfg.py":[{"author":{"_account_id":9796,"name":"ChangBo Guo","email":"glongwave@gmail.com","username":"gcb"},"change_message_id":"a697ce4b9aca8cbc10645764c955db934af03d5c","unresolved":false,"context_lines":[{"line_number":666,"context_line":""},{"line_number":667,"context_line":"    def test_positional_port_arg(self):"},{"line_number":668,"context_line":"        self._do_pos_test(cfg.PortOpt, None, [\u0027443\u0027], 443)"},{"line_number":669,"context_line":""},{"line_number":670,"context_line":"# DEBUG ADIT (opt_class, default, cli_args, value)"},{"line_number":671,"context_line":"    def test_positional_port_list_none_default(self):"},{"line_number":672,"context_line":"        self._do_pos_test(cfg.PortListOpt, None, [], None)"},{"line_number":673,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_ba5bd72d","line":670,"range":{"start_line":669,"start_character":0,"end_line":670,"end_character":50},"updated":"2016-04-09 09:02:26.000000000","message":"remove this ?","commit_id":"de82f6f595a8f6d7c5c64c805b4583fdfe5a8ccb"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"10ccdc356a5832975f71cf9572859ea505a3b765","unresolved":false,"context_lines":[{"line_number":666,"context_line":""},{"line_number":667,"context_line":"    def test_positional_port_arg(self):"},{"line_number":668,"context_line":"        self._do_pos_test(cfg.PortOpt, None, [\u0027443\u0027], 443)"},{"line_number":669,"context_line":""},{"line_number":670,"context_line":"# DEBUG ADIT (opt_class, default, cli_args, value)"},{"line_number":671,"context_line":"    def test_positional_port_list_none_default(self):"},{"line_number":672,"context_line":"        self._do_pos_test(cfg.PortListOpt, None, [], None)"},{"line_number":673,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"9a061dce_2e55cc1c","line":670,"range":{"start_line":669,"start_character":0,"end_line":670,"end_character":50},"in_reply_to":"9a061dce_ba5bd72d","updated":"2016-04-09 14:09:33.000000000","message":"Done","commit_id":"de82f6f595a8f6d7c5c64c805b4583fdfe5a8ccb"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"638cb6086265a02777ec490837c67ae84d666fae","unresolved":false,"context_lines":[{"line_number":4211,"context_line":"                                   default\u003d[455],"},{"line_number":4212,"context_line":"                                   choices\u003d[80, 455]))"},{"line_number":4213,"context_line":"        self.conf([])"},{"line_number":4214,"context_line":"        self.assertEqual(self.conf.port, [455])"},{"line_number":4215,"context_line":""},{"line_number":4216,"context_line":"    def test_choice_good_with_list(self):"},{"line_number":4217,"context_line":"        self.conf.register_cli_opt(cfg.PortListOpt(\u0027port\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a9d85d2_942b2a94","line":4214,"range":{"start_line":4214,"start_character":25,"end_line":4214,"end_character":46},"updated":"2016-06-21 05:31:43.000000000","message":"This should be assertEqual(expected, actual)","commit_id":"7c2401bd5c3e8a1bd79843e48950adc566719640"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"0f79b767fa076685ccc8d42d26c6522a168e80fb","unresolved":false,"context_lines":[{"line_number":4211,"context_line":"                                   default\u003d[455],"},{"line_number":4212,"context_line":"                                   choices\u003d[80, 455]))"},{"line_number":4213,"context_line":"        self.conf([])"},{"line_number":4214,"context_line":"        self.assertEqual(self.conf.port, [455])"},{"line_number":4215,"context_line":""},{"line_number":4216,"context_line":"    def test_choice_good_with_list(self):"},{"line_number":4217,"context_line":"        self.conf.register_cli_opt(cfg.PortListOpt(\u0027port\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a9d85d2_bf4c3f71","line":4214,"range":{"start_line":4214,"start_character":25,"end_line":4214,"end_character":46},"in_reply_to":"5a9d85d2_942b2a94","updated":"2016-06-21 05:37:40.000000000","message":"Done","commit_id":"7c2401bd5c3e8a1bd79843e48950adc566719640"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"638cb6086265a02777ec490837c67ae84d666fae","unresolved":false,"context_lines":[{"line_number":4217,"context_line":"        self.conf.register_cli_opt(cfg.PortListOpt(\u0027port\u0027,"},{"line_number":4218,"context_line":"                                   choices\u003d[80, 8080, 101]))"},{"line_number":4219,"context_line":"        self.conf([\u0027--port\u0027, \u002780,8080\u0027])"},{"line_number":4220,"context_line":"        self.assertEqual(self.conf.port, [80, 8080])"},{"line_number":4221,"context_line":""},{"line_number":4222,"context_line":"    def test_choice_bad(self):"},{"line_number":4223,"context_line":"        self.conf.register_cli_opt(cfg.PortListOpt(\u0027port\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a9d85d2_d41bf27e","line":4220,"range":{"start_line":4220,"start_character":13,"end_line":4220,"end_character":24},"updated":"2016-06-21 05:31:43.000000000","message":"same","commit_id":"7c2401bd5c3e8a1bd79843e48950adc566719640"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"0f79b767fa076685ccc8d42d26c6522a168e80fb","unresolved":false,"context_lines":[{"line_number":4217,"context_line":"        self.conf.register_cli_opt(cfg.PortListOpt(\u0027port\u0027,"},{"line_number":4218,"context_line":"                                   choices\u003d[80, 8080, 101]))"},{"line_number":4219,"context_line":"        self.conf([\u0027--port\u0027, \u002780,8080\u0027])"},{"line_number":4220,"context_line":"        self.assertEqual(self.conf.port, [80, 8080])"},{"line_number":4221,"context_line":""},{"line_number":4222,"context_line":"    def test_choice_bad(self):"},{"line_number":4223,"context_line":"        self.conf.register_cli_opt(cfg.PortListOpt(\u0027port\u0027,"}],"source_content_type":"text/x-python","patch_set":4,"id":"5a9d85d2_9f47c34a","line":4220,"range":{"start_line":4220,"start_character":13,"end_line":4220,"end_character":24},"in_reply_to":"5a9d85d2_d41bf27e","updated":"2016-06-21 05:37:40.000000000","message":"Done","commit_id":"7c2401bd5c3e8a1bd79843e48950adc566719640"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"d50bacf76ffce0a76020306e9aa167014a7d056a","unresolved":false,"context_lines":[{"line_number":1467,"context_line":""},{"line_number":1468,"context_line":"        self.conf([\u0027--config-file\u0027, paths[0]])"},{"line_number":1469,"context_line":"        self.assertTrue(hasattr(self.conf, \u0027foo\u0027))"},{"line_number":1470,"context_line":"        self.assertEqual(self.conf.foo, [22, 80])"},{"line_number":1471,"context_line":""},{"line_number":1472,"context_line":"    def test_conf_file_port_list_default(self):"},{"line_number":1473,"context_line":"        self.conf.register_opt(cfg.ListOpt(\u0027foo\u0027, item_type\u003dtypes.Port(),"}],"source_content_type":"text/x-python","patch_set":12,"id":"dada55a8_ed22abb8","line":1470,"range":{"start_line":1470,"start_character":13,"end_line":1470,"end_character":24},"updated":"2016-07-18 20:47:51.000000000","message":"assertEqual(expected, actual)","commit_id":"4550267c8ec426e9e6c7be9df4d45adc70a1777a"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"d460bca9e79fb7d34f3f9ca2c220ab7997ab76d8","unresolved":false,"context_lines":[{"line_number":1467,"context_line":""},{"line_number":1468,"context_line":"        self.conf([\u0027--config-file\u0027, paths[0]])"},{"line_number":1469,"context_line":"        self.assertTrue(hasattr(self.conf, \u0027foo\u0027))"},{"line_number":1470,"context_line":"        self.assertEqual(self.conf.foo, [22, 80])"},{"line_number":1471,"context_line":""},{"line_number":1472,"context_line":"    def test_conf_file_port_list_default(self):"},{"line_number":1473,"context_line":"        self.conf.register_opt(cfg.ListOpt(\u0027foo\u0027, item_type\u003dtypes.Port(),"}],"source_content_type":"text/x-python","patch_set":12,"id":"dada55a8_255b2e30","line":1470,"range":{"start_line":1470,"start_character":13,"end_line":1470,"end_character":24},"in_reply_to":"dada55a8_ed22abb8","updated":"2016-07-19 05:15:28.000000000","message":"Done","commit_id":"4550267c8ec426e9e6c7be9df4d45adc70a1777a"},{"author":{"_account_id":9459,"name":".Haifeng Yan","email":"yanheven@qq.com","username":"yan"},"change_message_id":"0605874ea34e111cb38e9a1abb64bb3c0cc0e5d4","unresolved":false,"context_lines":[{"line_number":1467,"context_line":""},{"line_number":1468,"context_line":"        self.conf([\u0027--config-file\u0027, paths[0]])"},{"line_number":1469,"context_line":"        self.assertTrue(hasattr(self.conf, \u0027foo\u0027))"},{"line_number":1470,"context_line":"        self.assertEqual(self.conf.foo, [22, 80])"},{"line_number":1471,"context_line":""},{"line_number":1472,"context_line":"    def test_conf_file_port_list_default(self):"},{"line_number":1473,"context_line":"        self.conf.register_opt(cfg.ListOpt(\u0027foo\u0027, item_type\u003dtypes.Port(),"}],"source_content_type":"text/x-python","patch_set":12,"id":"dada55a8_740dde3d","line":1470,"range":{"start_line":1470,"start_character":13,"end_line":1470,"end_character":24},"in_reply_to":"dada55a8_ed22abb8","updated":"2016-07-19 03:31:04.000000000","message":"Hi, Eric, previous wrong use of assertEqual need fix also, I have reported a bug here https://bugs.launchpad.net/oslo.config/+bug/1604213","commit_id":"4550267c8ec426e9e6c7be9df4d45adc70a1777a"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"d50bacf76ffce0a76020306e9aa167014a7d056a","unresolved":false,"context_lines":[{"line_number":1479,"context_line":""},{"line_number":1480,"context_line":"        self.conf([\u0027--config-file\u0027, paths[0]])"},{"line_number":1481,"context_line":"        self.assertTrue(hasattr(self.conf, \u0027foo\u0027))"},{"line_number":1482,"context_line":"        self.assertEqual(self.conf.foo, [22, 80])"},{"line_number":1483,"context_line":""},{"line_number":1484,"context_line":"    def test_conf_file_port_list_only_default(self):"},{"line_number":1485,"context_line":"        self.conf.register_opt(cfg.ListOpt(\u0027foo\u0027, item_type\u003dtypes.Port(),"}],"source_content_type":"text/x-python","patch_set":12,"id":"dada55a8_ad40b357","line":1482,"range":{"start_line":1482,"start_character":13,"end_line":1482,"end_character":24},"updated":"2016-07-18 20:47:51.000000000","message":"assertEqual(expected, actual)","commit_id":"4550267c8ec426e9e6c7be9df4d45adc70a1777a"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"d460bca9e79fb7d34f3f9ca2c220ab7997ab76d8","unresolved":false,"context_lines":[{"line_number":1479,"context_line":""},{"line_number":1480,"context_line":"        self.conf([\u0027--config-file\u0027, paths[0]])"},{"line_number":1481,"context_line":"        self.assertTrue(hasattr(self.conf, \u0027foo\u0027))"},{"line_number":1482,"context_line":"        self.assertEqual(self.conf.foo, [22, 80])"},{"line_number":1483,"context_line":""},{"line_number":1484,"context_line":"    def test_conf_file_port_list_only_default(self):"},{"line_number":1485,"context_line":"        self.conf.register_opt(cfg.ListOpt(\u0027foo\u0027, item_type\u003dtypes.Port(),"}],"source_content_type":"text/x-python","patch_set":12,"id":"dada55a8_8542da3c","line":1482,"range":{"start_line":1482,"start_character":13,"end_line":1482,"end_character":24},"in_reply_to":"dada55a8_ad40b357","updated":"2016-07-19 05:15:28.000000000","message":"Done","commit_id":"4550267c8ec426e9e6c7be9df4d45adc70a1777a"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"d50bacf76ffce0a76020306e9aa167014a7d056a","unresolved":false,"context_lines":[{"line_number":1490,"context_line":""},{"line_number":1491,"context_line":"        self.conf([\u0027--config-file\u0027, paths[0]])"},{"line_number":1492,"context_line":"        self.assertTrue(hasattr(self.conf, \u0027foo\u0027))"},{"line_number":1493,"context_line":"        self.assertEqual(self.conf.foo, [55, 77])"},{"line_number":1494,"context_line":""},{"line_number":1495,"context_line":"    def test_conf_file_port_list_outside_range(self):"},{"line_number":1496,"context_line":"        self.conf.register_opt(cfg.ListOpt(\u0027foo\u0027, item_type\u003dtypes.Port()))"}],"source_content_type":"text/x-python","patch_set":12,"id":"dada55a8_4d301702","line":1493,"range":{"start_line":1493,"start_character":13,"end_line":1493,"end_character":24},"updated":"2016-07-18 20:47:51.000000000","message":"assertEqual(expected, actual)","commit_id":"4550267c8ec426e9e6c7be9df4d45adc70a1777a"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"d460bca9e79fb7d34f3f9ca2c220ab7997ab76d8","unresolved":false,"context_lines":[{"line_number":1490,"context_line":""},{"line_number":1491,"context_line":"        self.conf([\u0027--config-file\u0027, paths[0]])"},{"line_number":1492,"context_line":"        self.assertTrue(hasattr(self.conf, \u0027foo\u0027))"},{"line_number":1493,"context_line":"        self.assertEqual(self.conf.foo, [55, 77])"},{"line_number":1494,"context_line":""},{"line_number":1495,"context_line":"    def test_conf_file_port_list_outside_range(self):"},{"line_number":1496,"context_line":"        self.conf.register_opt(cfg.ListOpt(\u0027foo\u0027, item_type\u003dtypes.Port()))"}],"source_content_type":"text/x-python","patch_set":12,"id":"dada55a8_653d26bb","line":1493,"range":{"start_line":1493,"start_character":13,"end_line":1493,"end_character":24},"in_reply_to":"dada55a8_4d301702","updated":"2016-07-19 05:15:28.000000000","message":"Done","commit_id":"4550267c8ec426e9e6c7be9df4d45adc70a1777a"}],"oslo_config/tests/test_types.py":[{"author":{"_account_id":9459,"name":".Haifeng Yan","email":"yanheven@qq.com","username":"yan"},"change_message_id":"0967cacd3f4f1fddc5d59dd28e1b29f9f448c6f6","unresolved":false,"context_lines":[{"line_number":678,"context_line":"        self.assertRaises(ValueError, t, 1)"},{"line_number":679,"context_line":"        self.assertRaises(ValueError, t, 200)"},{"line_number":680,"context_line":"        t(80)"},{"line_number":681,"context_line":"        t(457)"}],"source_content_type":"text/x-python","patch_set":10,"id":"dada55a8_2f96ad94","line":681,"range":{"start_line":681,"start_character":13,"end_line":681,"end_character":14},"updated":"2016-07-17 13:38:07.000000000","message":"as port has range, so how about adding test_invalid_choices?","commit_id":"1c499b30bbfb3556bb1990c2d94692c2d44dd67f"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"c06897ea6c8a137d82e6c60b7446fa634e8a574b","unresolved":false,"context_lines":[{"line_number":678,"context_line":"        self.assertRaises(ValueError, t, 1)"},{"line_number":679,"context_line":"        self.assertRaises(ValueError, t, 200)"},{"line_number":680,"context_line":"        t(80)"},{"line_number":681,"context_line":"        t(457)"}],"source_content_type":"text/x-python","patch_set":10,"id":"dada55a8_e87126e2","line":681,"range":{"start_line":681,"start_character":13,"end_line":681,"end_character":14},"in_reply_to":"dada55a8_2f96ad94","updated":"2016-07-18 04:57:48.000000000","message":"Done","commit_id":"1c499b30bbfb3556bb1990c2d94692c2d44dd67f"}],"oslo_config/types.py":[{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"544247a41e651d61ef2f58c0dc127f1f60bb3e10","unresolved":false,"context_lines":[{"line_number":744,"context_line":"    def __repr__(self):"},{"line_number":745,"context_line":"        props \u003d []"},{"line_number":746,"context_line":"        if self.choices is not None:"},{"line_number":747,"context_line":"            props.append(\"choices\u003d%r\" % (self.choices,))"},{"line_number":748,"context_line":""},{"line_number":749,"context_line":"        if props:"},{"line_number":750,"context_line":"            return \u0027Port(%s)\u0027 % \u0027, \u0027.join(props)"}],"source_content_type":"text/x-python","patch_set":13,"id":"dada55a8_cb4fc1bb","line":747,"range":{"start_line":747,"start_character":40,"end_line":747,"end_character":55},"updated":"2016-07-19 07:00:35.000000000","message":"the () and , in there are redundant","commit_id":"490b679a4442c4c9bb100e5b38c00f93072c7338"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"a65c4037f3bf4d8632eeada6d8f9fd9cfb10ccb1","unresolved":false,"context_lines":[{"line_number":744,"context_line":"    def __repr__(self):"},{"line_number":745,"context_line":"        props \u003d []"},{"line_number":746,"context_line":"        if self.choices is not None:"},{"line_number":747,"context_line":"            props.append(\"choices\u003d%r\" % (self.choices,))"},{"line_number":748,"context_line":""},{"line_number":749,"context_line":"        if props:"},{"line_number":750,"context_line":"            return \u0027Port(%s)\u0027 % \u0027, \u0027.join(props)"}],"source_content_type":"text/x-python","patch_set":13,"id":"dada55a8_bdc4525f","line":747,"range":{"start_line":747,"start_character":40,"end_line":747,"end_character":55},"in_reply_to":"dada55a8_cb4fc1bb","updated":"2016-07-19 08:02:40.000000000","message":"Done","commit_id":"490b679a4442c4c9bb100e5b38c00f93072c7338"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"7004d779af4415ef7f46161cbc3407b934dc4a3d","unresolved":false,"context_lines":[{"line_number":744,"context_line":"    def __repr__(self):"},{"line_number":745,"context_line":"        props \u003d []"},{"line_number":746,"context_line":"        if self.choices is not None:"},{"line_number":747,"context_line":"            props.append(\"choices\u003d%r\" % self.choices)"},{"line_number":748,"context_line":""},{"line_number":749,"context_line":"        if props:"},{"line_number":750,"context_line":"            return \u0027Port(%s)\u0027 % \u0027, \u0027.join(props)"}],"source_content_type":"text/x-python","patch_set":14,"id":"dada55a8_b091ec54","line":747,"range":{"start_line":747,"start_character":40,"end_line":747,"end_character":53},"updated":"2016-07-19 22:16:08.000000000","message":"Sorry, my mistake, this really does need to be (self.choices,)) because choices is a set.","commit_id":"faee76e26f75755d4df20930e144583efb326a1c"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"93fadd6094d08948c39b6e892a7665fb265f084f","unresolved":false,"context_lines":[{"line_number":702,"context_line":"        return value"},{"line_number":703,"context_line":""},{"line_number":704,"context_line":""},{"line_number":705,"context_line":"class Port(Integer):"},{"line_number":706,"context_line":""},{"line_number":707,"context_line":"    \"\"\"Port type"},{"line_number":708,"context_line":""}],"source_content_type":"text/x-python","patch_set":16,"id":"dada55a8_e31cd26b","line":705,"updated":"2016-07-21 16:06:44.000000000","message":"it\u0027d make more sense to base this patch on your other one","commit_id":"cd1f769779b709c2d04e5afce2ae4d60170a12a6"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"93fadd6094d08948c39b6e892a7665fb265f084f","unresolved":false,"context_lines":[{"line_number":718,"context_line":"    PORT_MIN \u003d 0"},{"line_number":719,"context_line":"    PORT_MAX \u003d 65535"},{"line_number":720,"context_line":""},{"line_number":721,"context_line":"    def __init__(self, type_name\u003d\u0027Port\u0027,  choices\u003dNone):"},{"line_number":722,"context_line":""},{"line_number":723,"context_line":"        # choices and min/max are mutually exclusive for Port type. So check"},{"line_number":724,"context_line":"        # if choice are in the range of min/max and only assign choices to"}],"source_content_type":"text/x-python","patch_set":16,"id":"dada55a8_87d367d4","line":721,"range":{"start_line":721,"start_character":40,"end_line":721,"end_character":42},"updated":"2016-07-21 16:06:44.000000000","message":"double space","commit_id":"cd1f769779b709c2d04e5afce2ae4d60170a12a6"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"6e3a103ea9f2c8226c008c368e828ef5e14e5269","unresolved":false,"context_lines":[{"line_number":718,"context_line":"    PORT_MIN \u003d 0"},{"line_number":719,"context_line":"    PORT_MAX \u003d 65535"},{"line_number":720,"context_line":""},{"line_number":721,"context_line":"    def __init__(self, type_name\u003d\u0027Port\u0027,  choices\u003dNone):"},{"line_number":722,"context_line":""},{"line_number":723,"context_line":"        # choices and min/max are mutually exclusive for Port type. So check"},{"line_number":724,"context_line":"        # if choice are in the range of min/max and only assign choices to"}],"source_content_type":"text/x-python","patch_set":16,"id":"dada55a8_91f7c458","line":721,"range":{"start_line":721,"start_character":40,"end_line":721,"end_character":42},"in_reply_to":"dada55a8_87d367d4","updated":"2016-07-24 04:56:26.000000000","message":"Done","commit_id":"cd1f769779b709c2d04e5afce2ae4d60170a12a6"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"93fadd6094d08948c39b6e892a7665fb265f084f","unresolved":false,"context_lines":[{"line_number":719,"context_line":"    PORT_MAX \u003d 65535"},{"line_number":720,"context_line":""},{"line_number":721,"context_line":"    def __init__(self, type_name\u003d\u0027Port\u0027,  choices\u003dNone):"},{"line_number":722,"context_line":""},{"line_number":723,"context_line":"        # choices and min/max are mutually exclusive for Port type. So check"},{"line_number":724,"context_line":"        # if choice are in the range of min/max and only assign choices to"},{"line_number":725,"context_line":"        # Port type."}],"source_content_type":"text/x-python","patch_set":16,"id":"dada55a8_67f1136b","line":722,"updated":"2016-07-21 16:06:44.000000000","message":"no need for blank line","commit_id":"cd1f769779b709c2d04e5afce2ae4d60170a12a6"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"6e3a103ea9f2c8226c008c368e828ef5e14e5269","unresolved":false,"context_lines":[{"line_number":719,"context_line":"    PORT_MAX \u003d 65535"},{"line_number":720,"context_line":""},{"line_number":721,"context_line":"    def __init__(self, type_name\u003d\u0027Port\u0027,  choices\u003dNone):"},{"line_number":722,"context_line":""},{"line_number":723,"context_line":"        # choices and min/max are mutually exclusive for Port type. So check"},{"line_number":724,"context_line":"        # if choice are in the range of min/max and only assign choices to"},{"line_number":725,"context_line":"        # Port type."}],"source_content_type":"text/x-python","patch_set":16,"id":"dada55a8_d1977ce9","line":722,"in_reply_to":"dada55a8_67f1136b","updated":"2016-07-24 04:56:26.000000000","message":"Done","commit_id":"cd1f769779b709c2d04e5afce2ae4d60170a12a6"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"93fadd6094d08948c39b6e892a7665fb265f084f","unresolved":false,"context_lines":[{"line_number":728,"context_line":"            super(Port, self).__init__(type_name\u003dtype_name, choices\u003dchoices)"},{"line_number":729,"context_line":"        else:"},{"line_number":730,"context_line":"            super(Port, self).__init__(type_name\u003dtype_name, min\u003dself.PORT_MIN,"},{"line_number":731,"context_line":"                                       max\u003dself.PORT_MAX)"},{"line_number":732,"context_line":""},{"line_number":733,"context_line":"    def _validate_port_choices(self, choices):"},{"line_number":734,"context_line":"        invalid_choices \u003d []"}],"source_content_type":"text/x-python","patch_set":16,"id":"dada55a8_a08c90da","line":731,"updated":"2016-07-21 16:06:44.000000000","message":"what if the port range can only be EG 1025-65535? we should take min+max and pass them through. Ideally, assert min \u003e\u003d PORT_MIN and max \u003c\u003d PORT_MAX.","commit_id":"cd1f769779b709c2d04e5afce2ae4d60170a12a6"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"6e3a103ea9f2c8226c008c368e828ef5e14e5269","unresolved":false,"context_lines":[{"line_number":728,"context_line":"            super(Port, self).__init__(type_name\u003dtype_name, choices\u003dchoices)"},{"line_number":729,"context_line":"        else:"},{"line_number":730,"context_line":"            super(Port, self).__init__(type_name\u003dtype_name, min\u003dself.PORT_MIN,"},{"line_number":731,"context_line":"                                       max\u003dself.PORT_MAX)"},{"line_number":732,"context_line":""},{"line_number":733,"context_line":"    def _validate_port_choices(self, choices):"},{"line_number":734,"context_line":"        invalid_choices \u003d []"}],"source_content_type":"text/x-python","patch_set":16,"id":"dada55a8_319ff804","line":731,"in_reply_to":"dada55a8_a08c90da","updated":"2016-07-24 04:56:26.000000000","message":"Done","commit_id":"cd1f769779b709c2d04e5afce2ae4d60170a12a6"},{"author":{"_account_id":9459,"name":".Haifeng Yan","email":"yanheven@qq.com","username":"yan"},"change_message_id":"ff466c8337ac401d82286c9121bf57aa1e0c3397","unresolved":false,"context_lines":[{"line_number":728,"context_line":"            super(Port, self).__init__(type_name\u003dtype_name, choices\u003dchoices)"},{"line_number":729,"context_line":"        else:"},{"line_number":730,"context_line":"            super(Port, self).__init__(type_name\u003dtype_name, min\u003dself.PORT_MIN,"},{"line_number":731,"context_line":"                                       max\u003dself.PORT_MAX)"},{"line_number":732,"context_line":""},{"line_number":733,"context_line":"    def _validate_port_choices(self, choices):"},{"line_number":734,"context_line":"        invalid_choices \u003d []"}],"source_content_type":"text/x-python","patch_set":16,"id":"dada55a8_577f4514","line":731,"in_reply_to":"dada55a8_a08c90da","updated":"2016-07-22 02:11:32.000000000","message":"it would be more powerful to let user specify range of port in the range of PORT_MIN~PORT_MAX.","commit_id":"cd1f769779b709c2d04e5afce2ae4d60170a12a6"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"93fadd6094d08948c39b6e892a7665fb265f084f","unresolved":false,"context_lines":[{"line_number":729,"context_line":"        else:"},{"line_number":730,"context_line":"            super(Port, self).__init__(type_name\u003dtype_name, min\u003dself.PORT_MIN,"},{"line_number":731,"context_line":"                                       max\u003dself.PORT_MAX)"},{"line_number":732,"context_line":""},{"line_number":733,"context_line":"    def _validate_port_choices(self, choices):"},{"line_number":734,"context_line":"        invalid_choices \u003d []"},{"line_number":735,"context_line":"        for choice in choices:"}],"source_content_type":"text/x-python","patch_set":16,"id":"dada55a8_435afef2","line":732,"updated":"2016-07-21 16:06:44.000000000","message":"and bearing that in mind, I think it\u0027d be more powerful to have this logic in Integer","commit_id":"cd1f769779b709c2d04e5afce2ae4d60170a12a6"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"6e3a103ea9f2c8226c008c368e828ef5e14e5269","unresolved":false,"context_lines":[{"line_number":729,"context_line":"        else:"},{"line_number":730,"context_line":"            super(Port, self).__init__(type_name\u003dtype_name, min\u003dself.PORT_MIN,"},{"line_number":731,"context_line":"                                       max\u003dself.PORT_MAX)"},{"line_number":732,"context_line":""},{"line_number":733,"context_line":"    def _validate_port_choices(self, choices):"},{"line_number":734,"context_line":"        invalid_choices \u003d []"},{"line_number":735,"context_line":"        for choice in choices:"}],"source_content_type":"text/x-python","patch_set":16,"id":"dada55a8_718970ca","line":732,"in_reply_to":"dada55a8_435afef2","updated":"2016-07-24 04:56:26.000000000","message":"Not sure I understood that","commit_id":"cd1f769779b709c2d04e5afce2ae4d60170a12a6"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"93fadd6094d08948c39b6e892a7665fb265f084f","unresolved":false,"context_lines":[{"line_number":734,"context_line":"        invalid_choices \u003d []"},{"line_number":735,"context_line":"        for choice in choices:"},{"line_number":736,"context_line":"            if not self.PORT_MIN \u003c\u003d choice \u003c\u003d self.PORT_MAX:"},{"line_number":737,"context_line":"                invalid_choices.append(six.text_type(choice))"},{"line_number":738,"context_line":"        if invalid_choices:"},{"line_number":739,"context_line":"            raise ValueError(\"\u0027Choices\u0027 values %(choices)s should be in \""},{"line_number":740,"context_line":"                             \"the range of %(min)d and %(max)d\" %"}],"source_content_type":"text/x-python","patch_set":16,"id":"dada55a8_e080488d","line":737,"updated":"2016-07-21 16:06:44.000000000","message":"Tidier:\n\n  invalid \u003d [six.text_type(choice) for choice in choices\n             if not self.PORT_MIN \u003c\u003d choice \u003c\u003d self.PORT_MAX]","commit_id":"cd1f769779b709c2d04e5afce2ae4d60170a12a6"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"6e3a103ea9f2c8226c008c368e828ef5e14e5269","unresolved":false,"context_lines":[{"line_number":734,"context_line":"        invalid_choices \u003d []"},{"line_number":735,"context_line":"        for choice in choices:"},{"line_number":736,"context_line":"            if not self.PORT_MIN \u003c\u003d choice \u003c\u003d self.PORT_MAX:"},{"line_number":737,"context_line":"                invalid_choices.append(six.text_type(choice))"},{"line_number":738,"context_line":"        if invalid_choices:"},{"line_number":739,"context_line":"            raise ValueError(\"\u0027Choices\u0027 values %(choices)s should be in \""},{"line_number":740,"context_line":"                             \"the range of %(min)d and %(max)d\" %"}],"source_content_type":"text/x-python","patch_set":16,"id":"dada55a8_b193e8f9","line":737,"in_reply_to":"dada55a8_e080488d","updated":"2016-07-24 04:56:26.000000000","message":"Done","commit_id":"cd1f769779b709c2d04e5afce2ae4d60170a12a6"},{"author":{"_account_id":9459,"name":".Haifeng Yan","email":"yanheven@qq.com","username":"yan"},"change_message_id":"a1d72581e1c330784a17f1f859d77d06027f563c","unresolved":false,"context_lines":[{"line_number":765,"context_line":"            raise ValueError(\u0027Min value cannot be less than %(min)d\u0027,"},{"line_number":766,"context_line":"                             {\u0027min\u0027: self.PORT_MIN})"},{"line_number":767,"context_line":"        if max is not None and max \u003e self.PORT_MAX:"},{"line_number":768,"context_line":"            raise ValueError(\u0027Min value cannot be more than %(max)d\u0027,"},{"line_number":769,"context_line":"                             {\u0027min\u0027: self.PORT_MAX})"},{"line_number":770,"context_line":""},{"line_number":771,"context_line":"    def _validate_port_choices(self, choices):"}],"source_content_type":"text/x-python","patch_set":17,"id":"dada55a8_94fe92ac","line":768,"range":{"start_line":768,"start_character":30,"end_line":768,"end_character":33},"updated":"2016-07-24 05:47:16.000000000","message":"Max","commit_id":"057b317f8d7b1750850b9404f571fa58fac66b99"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"daf35da2d1c2a1ecfaa70fa43e098db05b335a9c","unresolved":false,"context_lines":[{"line_number":765,"context_line":"            raise ValueError(\u0027Min value cannot be less than %(min)d\u0027,"},{"line_number":766,"context_line":"                             {\u0027min\u0027: self.PORT_MIN})"},{"line_number":767,"context_line":"        if max is not None and max \u003e self.PORT_MAX:"},{"line_number":768,"context_line":"            raise ValueError(\u0027Min value cannot be more than %(max)d\u0027,"},{"line_number":769,"context_line":"                             {\u0027min\u0027: self.PORT_MAX})"},{"line_number":770,"context_line":""},{"line_number":771,"context_line":"    def _validate_port_choices(self, choices):"}],"source_content_type":"text/x-python","patch_set":17,"id":"dada55a8_c9c34456","line":768,"range":{"start_line":768,"start_character":30,"end_line":768,"end_character":33},"in_reply_to":"dada55a8_94fe92ac","updated":"2016-07-25 06:48:24.000000000","message":"Done","commit_id":"057b317f8d7b1750850b9404f571fa58fac66b99"},{"author":{"_account_id":9459,"name":".Haifeng Yan","email":"yanheven@qq.com","username":"yan"},"change_message_id":"a1d72581e1c330784a17f1f859d77d06027f563c","unresolved":false,"context_lines":[{"line_number":766,"context_line":"                             {\u0027min\u0027: self.PORT_MIN})"},{"line_number":767,"context_line":"        if max is not None and max \u003e self.PORT_MAX:"},{"line_number":768,"context_line":"            raise ValueError(\u0027Min value cannot be more than %(max)d\u0027,"},{"line_number":769,"context_line":"                             {\u0027min\u0027: self.PORT_MAX})"},{"line_number":770,"context_line":""},{"line_number":771,"context_line":"    def _validate_port_choices(self, choices):"},{"line_number":772,"context_line":"        invalid \u003d [six.text_type(choice) for choice in choices"}],"source_content_type":"text/x-python","patch_set":17,"id":"dada55a8_f42b8e31","line":769,"range":{"start_line":769,"start_character":31,"end_line":769,"end_character":34},"updated":"2016-07-24 05:47:16.000000000","message":"max","commit_id":"057b317f8d7b1750850b9404f571fa58fac66b99"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"daf35da2d1c2a1ecfaa70fa43e098db05b335a9c","unresolved":false,"context_lines":[{"line_number":766,"context_line":"                             {\u0027min\u0027: self.PORT_MIN})"},{"line_number":767,"context_line":"        if max is not None and max \u003e self.PORT_MAX:"},{"line_number":768,"context_line":"            raise ValueError(\u0027Min value cannot be more than %(max)d\u0027,"},{"line_number":769,"context_line":"                             {\u0027min\u0027: self.PORT_MAX})"},{"line_number":770,"context_line":""},{"line_number":771,"context_line":"    def _validate_port_choices(self, choices):"},{"line_number":772,"context_line":"        invalid \u003d [six.text_type(choice) for choice in choices"}],"source_content_type":"text/x-python","patch_set":17,"id":"dada55a8_29a140aa","line":769,"range":{"start_line":769,"start_character":31,"end_line":769,"end_character":34},"in_reply_to":"dada55a8_f42b8e31","updated":"2016-07-25 06:48:24.000000000","message":"Done","commit_id":"057b317f8d7b1750850b9404f571fa58fac66b99"},{"author":{"_account_id":9459,"name":".Haifeng Yan","email":"yanheven@qq.com","username":"yan"},"change_message_id":"a1d72581e1c330784a17f1f859d77d06027f563c","unresolved":false,"context_lines":[{"line_number":745,"context_line":"        # choices and min/max are mutually exclusive for Integer type. So check"},{"line_number":746,"context_line":"        # if choice are in the range of min/max and only assign choices to"},{"line_number":747,"context_line":"        # Port type."},{"line_number":748,"context_line":"        if choices:"},{"line_number":749,"context_line":"            self._validate_choices_and_limits(choices, min, max)"},{"line_number":750,"context_line":"            super(Port, self).__init__(type_name\u003dtype_name, choices\u003dchoices)"},{"line_number":751,"context_line":"        else:"},{"line_number":752,"context_line":"            calculated_min \u003d min if min is not None else self.PORT_MIN"},{"line_number":753,"context_line":"            calculated_max \u003d max if max is not None else self.PORT_MAX"},{"line_number":754,"context_line":"            super(Port, self).__init__(type_name\u003dtype_name, min\u003dcalculated_min,"},{"line_number":755,"context_line":"                                       max\u003dcalculated_max)"},{"line_number":756,"context_line":""},{"line_number":757,"context_line":"    def _validate_choices_and_limits(self, choices, min, max):"},{"line_number":758,"context_line":"        # super function prevents choices together with limits and min\u003emax"},{"line_number":759,"context_line":"        super(Port, self)._validate_choices_and_limits(choices, min, max)"},{"line_number":760,"context_line":""},{"line_number":761,"context_line":"        # in addition - compare choices and limits to the actual port limits"},{"line_number":762,"context_line":"        if choices is not None:"},{"line_number":763,"context_line":"            self._validate_port_choices(choices)"},{"line_number":764,"context_line":"        if min is not None and min \u003c self.PORT_MIN:"},{"line_number":765,"context_line":"            raise ValueError(\u0027Min value cannot be less than %(min)d\u0027,"},{"line_number":766,"context_line":"                             {\u0027min\u0027: self.PORT_MIN})"},{"line_number":767,"context_line":"        if max is not None and max \u003e self.PORT_MAX:"},{"line_number":768,"context_line":"            raise ValueError(\u0027Min value cannot be more than %(max)d\u0027,"},{"line_number":769,"context_line":"                             {\u0027min\u0027: self.PORT_MAX})"},{"line_number":770,"context_line":""},{"line_number":771,"context_line":"    def _validate_port_choices(self, choices):"},{"line_number":772,"context_line":"        invalid \u003d [six.text_type(choice) for choice in choices"},{"line_number":773,"context_line":"                   if not self.PORT_MIN \u003c\u003d choice \u003c\u003d self.PORT_MAX]"},{"line_number":774,"context_line":"        if invalid:"},{"line_number":775,"context_line":"            raise ValueError(\"\u0027Choices\u0027 values %(choices)s should be in \""},{"line_number":776,"context_line":"                             \"the range of %(min)d and %(max)d\" %"},{"line_number":777,"context_line":"                             {\u0027choices\u0027: \u0027, \u0027.join(invalid),"},{"line_number":778,"context_line":"                              \u0027min\u0027: self.PORT_MIN, \u0027max\u0027: self.PORT_MAX})"},{"line_number":779,"context_line":""},{"line_number":780,"context_line":"    def xxx__repr__(self):"},{"line_number":781,"context_line":"        props \u003d []"}],"source_content_type":"text/x-python","patch_set":17,"id":"dada55a8_541b7a1c","line":778,"range":{"start_line":748,"start_character":8,"end_line":778,"end_character":74},"updated":"2016-07-24 05:47:16.000000000","message":"I prefer to first check min \u003e\u003d PORT_MIN \u0026 max \u003c\u003d PORT_MAX, and then just call parent\u0027s method to check choice","commit_id":"057b317f8d7b1750850b9404f571fa58fac66b99"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"daf35da2d1c2a1ecfaa70fa43e098db05b335a9c","unresolved":false,"context_lines":[{"line_number":745,"context_line":"        # choices and min/max are mutually exclusive for Integer type. So check"},{"line_number":746,"context_line":"        # if choice are in the range of min/max and only assign choices to"},{"line_number":747,"context_line":"        # Port type."},{"line_number":748,"context_line":"        if choices:"},{"line_number":749,"context_line":"            self._validate_choices_and_limits(choices, min, max)"},{"line_number":750,"context_line":"            super(Port, self).__init__(type_name\u003dtype_name, choices\u003dchoices)"},{"line_number":751,"context_line":"        else:"},{"line_number":752,"context_line":"            calculated_min \u003d min if min is not None else self.PORT_MIN"},{"line_number":753,"context_line":"            calculated_max \u003d max if max is not None else self.PORT_MAX"},{"line_number":754,"context_line":"            super(Port, self).__init__(type_name\u003dtype_name, min\u003dcalculated_min,"},{"line_number":755,"context_line":"                                       max\u003dcalculated_max)"},{"line_number":756,"context_line":""},{"line_number":757,"context_line":"    def _validate_choices_and_limits(self, choices, min, max):"},{"line_number":758,"context_line":"        # super function prevents choices together with limits and min\u003emax"},{"line_number":759,"context_line":"        super(Port, self)._validate_choices_and_limits(choices, min, max)"},{"line_number":760,"context_line":""},{"line_number":761,"context_line":"        # in addition - compare choices and limits to the actual port limits"},{"line_number":762,"context_line":"        if choices is not None:"},{"line_number":763,"context_line":"            self._validate_port_choices(choices)"},{"line_number":764,"context_line":"        if min is not None and min \u003c self.PORT_MIN:"},{"line_number":765,"context_line":"            raise ValueError(\u0027Min value cannot be less than %(min)d\u0027,"},{"line_number":766,"context_line":"                             {\u0027min\u0027: self.PORT_MIN})"},{"line_number":767,"context_line":"        if max is not None and max \u003e self.PORT_MAX:"},{"line_number":768,"context_line":"            raise ValueError(\u0027Min value cannot be more than %(max)d\u0027,"},{"line_number":769,"context_line":"                             {\u0027min\u0027: self.PORT_MAX})"},{"line_number":770,"context_line":""},{"line_number":771,"context_line":"    def _validate_port_choices(self, choices):"},{"line_number":772,"context_line":"        invalid \u003d [six.text_type(choice) for choice in choices"},{"line_number":773,"context_line":"                   if not self.PORT_MIN \u003c\u003d choice \u003c\u003d self.PORT_MAX]"},{"line_number":774,"context_line":"        if invalid:"},{"line_number":775,"context_line":"            raise ValueError(\"\u0027Choices\u0027 values %(choices)s should be in \""},{"line_number":776,"context_line":"                             \"the range of %(min)d and %(max)d\" %"},{"line_number":777,"context_line":"                             {\u0027choices\u0027: \u0027, \u0027.join(invalid),"},{"line_number":778,"context_line":"                              \u0027min\u0027: self.PORT_MIN, \u0027max\u0027: self.PORT_MAX})"},{"line_number":779,"context_line":""},{"line_number":780,"context_line":"    def xxx__repr__(self):"},{"line_number":781,"context_line":"        props \u003d []"}],"source_content_type":"text/x-python","patch_set":17,"id":"dada55a8_899e6c52","line":778,"range":{"start_line":748,"start_character":8,"end_line":778,"end_character":74},"in_reply_to":"dada55a8_541b7a1c","updated":"2016-07-25 06:48:24.000000000","message":"But the parents (integer \u0026 nubmer) does not support choices with min/max","commit_id":"057b317f8d7b1750850b9404f571fa58fac66b99"},{"author":{"_account_id":9459,"name":".Haifeng Yan","email":"yanheven@qq.com","username":"yan"},"change_message_id":"a1d72581e1c330784a17f1f859d77d06027f563c","unresolved":false,"context_lines":[{"line_number":777,"context_line":"                             {\u0027choices\u0027: \u0027, \u0027.join(invalid),"},{"line_number":778,"context_line":"                              \u0027min\u0027: self.PORT_MIN, \u0027max\u0027: self.PORT_MAX})"},{"line_number":779,"context_line":""},{"line_number":780,"context_line":"    def xxx__repr__(self):"},{"line_number":781,"context_line":"        props \u003d []"},{"line_number":782,"context_line":"        if self.choices is not None:"},{"line_number":783,"context_line":"            props.append(\"choices\u003d%r\" % (self.choices,))"}],"source_content_type":"text/x-python","patch_set":17,"id":"dada55a8_b403d6b7","line":780,"range":{"start_line":780,"start_character":20,"end_line":780,"end_character":24},"updated":"2016-07-24 05:47:16.000000000","message":"IMO, don\u0027t need overwrite __repre__.","commit_id":"057b317f8d7b1750850b9404f571fa58fac66b99"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"daf35da2d1c2a1ecfaa70fa43e098db05b335a9c","unresolved":false,"context_lines":[{"line_number":777,"context_line":"                             {\u0027choices\u0027: \u0027, \u0027.join(invalid),"},{"line_number":778,"context_line":"                              \u0027min\u0027: self.PORT_MIN, \u0027max\u0027: self.PORT_MAX})"},{"line_number":779,"context_line":""},{"line_number":780,"context_line":"    def xxx__repr__(self):"},{"line_number":781,"context_line":"        props \u003d []"},{"line_number":782,"context_line":"        if self.choices is not None:"},{"line_number":783,"context_line":"            props.append(\"choices\u003d%r\" % (self.choices,))"}],"source_content_type":"text/x-python","patch_set":17,"id":"dada55a8_69821802","line":780,"range":{"start_line":780,"start_character":20,"end_line":780,"end_character":24},"in_reply_to":"dada55a8_b403d6b7","updated":"2016-07-25 06:48:24.000000000","message":"You are right. I forgot to delete it. Thanks","commit_id":"057b317f8d7b1750850b9404f571fa58fac66b99"},{"author":{"_account_id":9459,"name":".Haifeng Yan","email":"yanheven@qq.com","username":"yan"},"change_message_id":"4347fc847606b2b4d9df4584e8e7f92abd2d8807","unresolved":false,"context_lines":[{"line_number":741,"context_line":"    PORT_MIN \u003d 0"},{"line_number":742,"context_line":"    PORT_MAX \u003d 65535"},{"line_number":743,"context_line":""},{"line_number":744,"context_line":"    def __init__(self, min\u003dNone, max\u003dNone, type_name\u003d\u0027Port\u0027, choices\u003dNone):"},{"line_number":745,"context_line":"        # choices and min/max are mutually exclusive for Integer type. So check"},{"line_number":746,"context_line":"        # if choice are in the range of min/max and only assign choices to"},{"line_number":747,"context_line":"        # Port type."},{"line_number":748,"context_line":"        if choices:"},{"line_number":749,"context_line":"            self._validate_choices_and_limits(choices, min, max)"},{"line_number":750,"context_line":"            super(Port, self).__init__(type_name\u003dtype_name, choices\u003dchoices)"},{"line_number":751,"context_line":"        else:"},{"line_number":752,"context_line":"            calculated_min \u003d min if min is not None else self.PORT_MIN"},{"line_number":753,"context_line":"            calculated_max \u003d max if max is not None else self.PORT_MAX"},{"line_number":754,"context_line":"            super(Port, self).__init__(type_name\u003dtype_name, min\u003dcalculated_min,"},{"line_number":755,"context_line":"                                       max\u003dcalculated_max)"},{"line_number":756,"context_line":""},{"line_number":757,"context_line":"    def _validate_choices_and_limits(self, choices, min, max):"},{"line_number":758,"context_line":"        # super function prevents choices together with limits and min\u003emax"},{"line_number":759,"context_line":"        super(Port, self)._validate_choices_and_limits(choices, min, max)"},{"line_number":760,"context_line":""},{"line_number":761,"context_line":"        # in addition - compare choices and limits to the actual port limits"},{"line_number":762,"context_line":"        if choices is not None:"},{"line_number":763,"context_line":"            self._validate_port_choices(choices)"},{"line_number":764,"context_line":"        if min is not None and min \u003c self.PORT_MIN:"},{"line_number":765,"context_line":"            raise ValueError(\u0027Min value cannot be less than %(min)d\u0027,"},{"line_number":766,"context_line":"                             {\u0027min\u0027: self.PORT_MIN})"},{"line_number":767,"context_line":"        if max is not None and max \u003e self.PORT_MAX:"},{"line_number":768,"context_line":"            raise ValueError(\u0027Max value cannot be more than %(max)d\u0027,"},{"line_number":769,"context_line":"                             {\u0027max\u0027: self.PORT_MAX})"},{"line_number":770,"context_line":""},{"line_number":771,"context_line":"    def _validate_port_choices(self, choices):"},{"line_number":772,"context_line":"        invalid \u003d [six.text_type(choice) for choice in choices"},{"line_number":773,"context_line":"                   if not self.PORT_MIN \u003c\u003d choice \u003c\u003d self.PORT_MAX]"},{"line_number":774,"context_line":"        if invalid:"},{"line_number":775,"context_line":"            raise ValueError(\"\u0027Choices\u0027 values %(choices)s should be in \""},{"line_number":776,"context_line":"                             \"the range of %(min)d and %(max)d\" %"},{"line_number":777,"context_line":"                             {\u0027choices\u0027: \u0027, \u0027.join(invalid),"},{"line_number":778,"context_line":"                              \u0027min\u0027: self.PORT_MIN, \u0027max\u0027: self.PORT_MAX})"},{"line_number":779,"context_line":""},{"line_number":780,"context_line":"    def xxx__repr__(self):"},{"line_number":781,"context_line":"        props \u003d []"}],"source_content_type":"text/x-python","patch_set":18,"id":"dada55a8_64b4fff1","line":778,"range":{"start_line":744,"start_character":4,"end_line":778,"end_character":74},"updated":"2016-07-25 07:19:42.000000000","message":"how about this:\n\ndef __init__(self, min\u003dNone, max\u003dNone, type_name\u003d\u0027Port\u0027, choices\u003dNone):\n        # choices and min/max are mutually exclusive for Integer type. So check\n        # if choice are in the range of min/max and only assign choices to\n        # Port type.\n        if choices:\n            self._validate_port_choices(choices)\n            super(Port, self).__init__(type_name\u003dtype_name, choices\u003dchoices, min\u003dmin, max\u003dmax) # let parent do what it can do, here it is able to check choices and min/max are mutually exclusive.\n        else:\n            calculated_min \u003d min if min is not None else self.PORT_MIN\n            calculated_max \u003d max if max is not None else self.PORT_MAX\n            super(Port, self).__init__(type_name\u003dtype_name, min\u003dcalculated_min,\n                                       max\u003dcalculated_max)\n\ndef _validate_port_choices(self, choices):\n    invalid \u003d [six.text_type(choice) for choice in choices\n               if not self.PORT_MIN \u003c\u003d choice \u003c\u003d self.PORT_MAX]\n    if invalid:\n        raise ValueError(\"\u0027Choices\u0027 values %(choices)s should be in \"\n                         \"the range of %(min)d and %(max)d\" %\n                         {\u0027choices\u0027: \u0027, \u0027.join(invalid),\n                          \u0027min\u0027: self.PORT_MIN, \u0027max\u0027: self.PORT_MAX})","commit_id":"0e72e13118c6687d95bdb19511164322cecb8f7d"},{"author":{"_account_id":9459,"name":".Haifeng Yan","email":"yanheven@qq.com","username":"yan"},"change_message_id":"4347fc847606b2b4d9df4584e8e7f92abd2d8807","unresolved":false,"context_lines":[{"line_number":777,"context_line":"                             {\u0027choices\u0027: \u0027, \u0027.join(invalid),"},{"line_number":778,"context_line":"                              \u0027min\u0027: self.PORT_MIN, \u0027max\u0027: self.PORT_MAX})"},{"line_number":779,"context_line":""},{"line_number":780,"context_line":"    def xxx__repr__(self):"},{"line_number":781,"context_line":"        props \u003d []"},{"line_number":782,"context_line":"        if self.choices is not None:"},{"line_number":783,"context_line":"            props.append(\"choices\u003d%r\" % (self.choices,))"},{"line_number":784,"context_line":""},{"line_number":785,"context_line":"        if props:"},{"line_number":786,"context_line":"            return \u0027Port(%s)\u0027 % \u0027, \u0027.join(props)"},{"line_number":787,"context_line":"        return \u0027Port\u0027"}],"source_content_type":"text/x-python","patch_set":18,"id":"dada55a8_24a167aa","line":787,"range":{"start_line":780,"start_character":4,"end_line":787,"end_character":21},"updated":"2016-07-25 07:19:42.000000000","message":"you forgot it again,:)","commit_id":"0e72e13118c6687d95bdb19511164322cecb8f7d"},{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"7afd3d19f5c9489fabb1740f068def7647572ed5","unresolved":false,"context_lines":[{"line_number":274,"context_line":"        if choices is not None:"},{"line_number":275,"context_line":"            if min is not None or max is not None:"},{"line_number":276,"context_line":"                raise ValueError(\"\u0027choices\u0027 and \u0027min/max\u0027 cannot both be \""},{"line_number":277,"context_line":"                                 \"specified\")"},{"line_number":278,"context_line":"        else:"},{"line_number":279,"context_line":"            if min is not None and max is not None and max \u003c min:"},{"line_number":280,"context_line":"                raise ValueError(\u0027Max value is less than min value\u0027)"}],"source_content_type":"text/x-python","patch_set":19,"id":"dada55a8_2e549d52","line":277,"updated":"2016-07-25 13:58:51.000000000","message":"why not just allow this? It was probably only disallowed for lack of sensible semantics but we have those now - validating that all choices are within the bounds. I like that if you ask for a Port(choices\u003d[-100, 20.4]) it\u0027ll say no.\n\nDoing this should converge the code considerably.","commit_id":"6758ea2fd58cf0e4af3943913d48a38e48433f62"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"fef22efce731ba455155d57055cda2628b03c321","unresolved":false,"context_lines":[{"line_number":342,"context_line":"    .. versionchanged:: 3.2"},{"line_number":343,"context_line":"       Added *choices* parameter."},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"    .. versionchanged:: 3.14"},{"line_number":346,"context_line":"       *choices* is no longer mutually exclusive with *min*/*max*. If those are"},{"line_number":347,"context_line":"       supplied, all choices are verified to be within the range."},{"line_number":348,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":21,"id":"bacf61ea_1725a9ad","line":345,"range":{"start_line":345,"start_character":24,"end_line":345,"end_character":28},"updated":"2016-08-02 18:39:04.000000000","message":"Sorry, 3.15 now","commit_id":"3f1fa662c96d5d326c200b31600f806bccd437de"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"fef22efce731ba455155d57055cda2628b03c321","unresolved":false,"context_lines":[{"line_number":386,"context_line":"    :param min: Optional check that value is greater than or equal to min."},{"line_number":387,"context_line":"    :param max: Optional check that value is less than or equal to max."},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"    .. versionadded:: 3.14"},{"line_number":390,"context_line":"    \"\"\""},{"line_number":391,"context_line":""},{"line_number":392,"context_line":"    PORT_MIN \u003d 0"}],"source_content_type":"text/x-python","patch_set":21,"id":"bacf61ea_d71cb16c","line":389,"range":{"start_line":389,"start_character":22,"end_line":389,"end_character":26},"updated":"2016-08-02 18:39:04.000000000","message":"Sorry, 3.15 now","commit_id":"3f1fa662c96d5d326c200b31600f806bccd437de"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"2febdf823fcaec47a8c7d0569109fe6fd9f6337c","unresolved":false,"context_lines":[{"line_number":342,"context_line":"    .. versionchanged:: 3.2"},{"line_number":343,"context_line":"       Added *choices* parameter."},{"line_number":344,"context_line":""},{"line_number":345,"context_line":"    .. versionchanged:: 3.15"},{"line_number":346,"context_line":"       *choices* is no longer mutually exclusive with *min*/*max*. If those are"},{"line_number":347,"context_line":"       supplied, all choices are verified to be within the range."},{"line_number":348,"context_line":"    \"\"\""}],"source_content_type":"text/x-python","patch_set":22,"id":"9ad45d7e_1e51c7d8","line":345,"range":{"start_line":345,"start_character":24,"end_line":345,"end_character":28},"updated":"2016-08-10 15:57:00.000000000","message":"Should be 3.16 now","commit_id":"2d2d426a9b97c8b2605085022ef4520e8e48ed77"},{"author":{"_account_id":8119,"name":"Eric Brown","email":"eric_wade_brown@yahoo.com","username":"ericwb"},"change_message_id":"2febdf823fcaec47a8c7d0569109fe6fd9f6337c","unresolved":false,"context_lines":[{"line_number":386,"context_line":"    :param min: Optional check that value is greater than or equal to min."},{"line_number":387,"context_line":"    :param max: Optional check that value is less than or equal to max."},{"line_number":388,"context_line":""},{"line_number":389,"context_line":"    .. versionadded:: 3.15"},{"line_number":390,"context_line":"    \"\"\""},{"line_number":391,"context_line":""},{"line_number":392,"context_line":"    PORT_MIN \u003d 0"}],"source_content_type":"text/x-python","patch_set":22,"id":"9ad45d7e_be3fdb85","line":389,"range":{"start_line":389,"start_character":22,"end_line":389,"end_character":26},"updated":"2016-08-10 15:57:00.000000000","message":"Should be 3.16 now","commit_id":"2d2d426a9b97c8b2605085022ef4520e8e48ed77"}],"releasenotes/notes/add-port_type-8704295c6a56265d.yaml":[{"author":{"_account_id":8688,"name":"Alexis Lee","email":"openstack@lxsli.co.uk","username":"lxsli"},"change_message_id":"93fadd6094d08948c39b6e892a7665fb265f084f","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"prelude: \u003e"},{"line_number":3,"context_line":"  Added Port type that can be used as the type of a ListOpt."},{"line_number":4,"context_line":"features:"},{"line_number":5,"context_line":"  - Added Port type that can be used as the type of a ListOpt."}],"source_content_type":"text/x-yaml","patch_set":16,"id":"dada55a8_479b2f18","line":3,"updated":"2016-07-21 16:06:44.000000000","message":"never add prelude","commit_id":"cd1f769779b709c2d04e5afce2ae4d60170a12a6"},{"author":{"_account_id":20363,"name":"Adit Sarfaty","email":"asarfaty@vmware.com","username":"asarfaty"},"change_message_id":"6e3a103ea9f2c8226c008c368e828ef5e14e5269","unresolved":false,"context_lines":[{"line_number":1,"context_line":"---"},{"line_number":2,"context_line":"prelude: \u003e"},{"line_number":3,"context_line":"  Added Port type that can be used as the type of a ListOpt."},{"line_number":4,"context_line":"features:"},{"line_number":5,"context_line":"  - Added Port type that can be used as the type of a ListOpt."}],"source_content_type":"text/x-yaml","patch_set":16,"id":"dada55a8_918ea4ce","line":3,"in_reply_to":"dada55a8_479b2f18","updated":"2016-07-24 04:56:26.000000000","message":"Done","commit_id":"cd1f769779b709c2d04e5afce2ae4d60170a12a6"}]}
