)]}'
{"oslo/config/cfg.py":[{"author":{"_account_id":1653,"name":"garyk","email":"gkotton@vmware.com","username":"garyk"},"change_message_id":"1f42e120db92d818d1e6eb9259120c064e6c74f3","unresolved":false,"context_lines":[{"line_number":497,"context_line":"    if (group_name and group_name !\u003d \u0027DEFAULT\u0027 and"},{"line_number":498,"context_line":"        any([x.isupper() for x in group_name])):"},{"line_number":499,"context_line":"        group_name \u003d group_name.lower()"},{"line_number":500,"context_line":"        LOG.warn(\"Capital letters in a group name is now deprecated. \""},{"line_number":501,"context_line":"                 \"Please use lowercase group names instead.\")"},{"line_number":502,"context_line":"    return group_name"},{"line_number":503,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAOn%2F%2FoXE%3D","line":500,"updated":"2013-05-01 06:13:13.000000000","message":"I am not sure about the warning. Why do we need the warning message? If is is really a must then maybe the warning should at least have the name.","commit_id":"e3b1603e6a23ce953194a46f2af279b8df1e81e9"},{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"9bf5dba1291e42f9831017a2ea636c34ed5a0999","unresolved":false,"context_lines":[{"line_number":497,"context_line":"    if (group_name and group_name !\u003d \u0027DEFAULT\u0027 and"},{"line_number":498,"context_line":"        any([x.isupper() for x in group_name])):"},{"line_number":499,"context_line":"        group_name \u003d group_name.lower()"},{"line_number":500,"context_line":"        LOG.warn(\"Capital letters in a group name is now deprecated. \""},{"line_number":501,"context_line":"                 \"Please use lowercase group names instead.\")"},{"line_number":502,"context_line":"    return group_name"},{"line_number":503,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAOn%2F%2FoU4%3D","line":500,"in_reply_to":"AAAAOn%2F%2FoWY%3D","updated":"2013-05-01 06:36:35.000000000","message":"IMO, maybe we need a warning to explicitly state that uppercase letters shouldn\u0027t be used for group names","commit_id":"e3b1603e6a23ce953194a46f2af279b8df1e81e9"},{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"37bf3be638dd75a6d70c46c0dd206902a3104a9f","unresolved":false,"context_lines":[{"line_number":497,"context_line":"    if (group_name and group_name !\u003d \u0027DEFAULT\u0027 and"},{"line_number":498,"context_line":"        any([x.isupper() for x in group_name])):"},{"line_number":499,"context_line":"        group_name \u003d group_name.lower()"},{"line_number":500,"context_line":"        LOG.warn(\"Capital letters in a group name is now deprecated. \""},{"line_number":501,"context_line":"                 \"Please use lowercase group names instead.\")"},{"line_number":502,"context_line":"    return group_name"},{"line_number":503,"context_line":""}],"source_content_type":"text/x-python","patch_set":3,"id":"AAAAOn%2F%2FoWY%3D","line":500,"in_reply_to":"AAAAOn%2F%2FoXE%3D","updated":"2013-05-01 06:20:27.000000000","message":"Done","commit_id":"e3b1603e6a23ce953194a46f2af279b8df1e81e9"},{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"051a08632f27ada7e2ca1a3fc935bc6718eb6400","unresolved":false,"context_lines":[{"line_number":1563,"context_line":"        try:"},{"line_number":1564,"context_line":"            return self.__cache[key]"},{"line_number":1565,"context_line":"        except KeyError:"},{"line_number":1566,"context_line":"            name \u003d _normalize_group_name(name)"},{"line_number":1567,"context_line":"            value \u003d self._substitute(self._do_get(name, group))"},{"line_number":1568,"context_line":"            self.__cache[key] \u003d value"},{"line_number":1569,"context_line":"            return value"}],"source_content_type":"text/x-python","patch_set":4,"id":"AAAAOn%2F%2FoQE%3D","line":1566,"updated":"2013-05-01 08:40:25.000000000","message":"not that satisfied with this line. should I change line 1580 instead?","commit_id":"424f24d6552fd5c3907db37e55dfddd1999aff36"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"bb33e58f35ce819aa5f5d4b06812aa99157879bd","unresolved":false,"context_lines":[{"line_number":1076,"context_line":"            read_ok.append(filename)"},{"line_number":1077,"context_line":""},{"line_number":1078,"context_line":"        return read_ok"},{"line_number":1079,"context_line":""},{"line_number":1080,"context_line":"    def get(self, names, multi\u003dFalse):"},{"line_number":1081,"context_line":"        rvalue \u003d []"},{"line_number":1082,"context_line":"        for sections in self.parsed:"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2Fctc%3D","side":"PARENT","line":1079,"updated":"2013-05-09 09:16:08.000000000","message":"I\u0027d be tempted to do the lookup-time normalization here, so keep the normalization behaviour confined to the config parsing code\n\ne.g.\n\n  names \u003d [(_normalize_group_name(section), name) for section, name in names]\n\neither here or cparser_get_with_deprecated()","commit_id":"2031b324566214a550dce0b26c80ab4cd04d42b1"},{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"fca255e2c1705d1ec17d7483df034f8fc4d9f5d3","unresolved":false,"context_lines":[{"line_number":1076,"context_line":"            read_ok.append(filename)"},{"line_number":1077,"context_line":""},{"line_number":1078,"context_line":"        return read_ok"},{"line_number":1079,"context_line":""},{"line_number":1080,"context_line":"    def get(self, names, multi\u003dFalse):"},{"line_number":1081,"context_line":"        rvalue \u003d []"},{"line_number":1082,"context_line":"        for sections in self.parsed:"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2FcZM%3D","side":"PARENT","line":1079,"in_reply_to":"AAAAOn%2F%2Fctc%3D","updated":"2013-05-09 14:37:35.000000000","message":"Done","commit_id":"2031b324566214a550dce0b26c80ab4cd04d42b1"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"555d8366ae02d8bf1d4e6730e823d6f8dbe30963","unresolved":false,"context_lines":[{"line_number":494,"context_line":""},{"line_number":495,"context_line":""},{"line_number":496,"context_line":"def _normalize_group_name(group_name):"},{"line_number":497,"context_line":"    if (group_name and group_name !\u003d \u0027DEFAULT\u0027 and"},{"line_number":498,"context_line":"        any([x.isupper() for x in group_name])):"},{"line_number":499,"context_line":"        group_name \u003d group_name.lower()"},{"line_number":500,"context_line":"        LOG.warn(\"Capital letters in a group name is now deprecated. \""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2Fn9c%3D","line":497,"updated":"2013-05-01 14:49:28.000000000","message":"The way this conditional is written it lumps several different cases together in a way that doesn\u0027t let us handle the errors.\n\n  if not group_name:\n    raise ValueError()\n    # or maybe return \u0027DEFAULT\u0027? Is a blank group_name a coding error?\n  if group_name.lower() \u003d\u003d \u0027default\u0027:\n    return group_name.upper()  # make sure DeFaUlT is fixed\n  # normalize other group names to all lower-case\n  new_group_name \u003d group_name.lower()\n  if new_group_name !\u003d group_name:\n    LOG.warn(\u0027blah blah\u0027)\n    group_name \u003d new_group_name\n  return group_name","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"0b2895f67df9ab71404e2173805df97bc97d3709","unresolved":false,"context_lines":[{"line_number":494,"context_line":""},{"line_number":495,"context_line":""},{"line_number":496,"context_line":"def _normalize_group_name(group_name):"},{"line_number":497,"context_line":"    if (group_name and group_name !\u003d \u0027DEFAULT\u0027 and"},{"line_number":498,"context_line":"        any([x.isupper() for x in group_name])):"},{"line_number":499,"context_line":"        group_name \u003d group_name.lower()"},{"line_number":500,"context_line":"        LOG.warn(\"Capital letters in a group name is now deprecated. \""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2FdKI%3D","line":497,"in_reply_to":"AAAAOn%2F%2Fduk%3D","updated":"2013-05-09 01:39:43.000000000","message":"The background of allowing \"DEFAULT\" is stated on the bp.\n\n\"I think we should continue using [DEFAULT] as the default section since that\u0027s what ConfigParser does\"\n\nSo based on Doug\u0027s comment, I think DEFAULT should be checked whether all letters are capital opposed to other group names and emit an error when someone uses dEfAuLt.","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"a2934a329bbe9cb2a7e728445f08ef93cc1cbef3","unresolved":false,"context_lines":[{"line_number":494,"context_line":""},{"line_number":495,"context_line":""},{"line_number":496,"context_line":"def _normalize_group_name(group_name):"},{"line_number":497,"context_line":"    if (group_name and group_name !\u003d \u0027DEFAULT\u0027 and"},{"line_number":498,"context_line":"        any([x.isupper() for x in group_name])):"},{"line_number":499,"context_line":"        group_name \u003d group_name.lower()"},{"line_number":500,"context_line":"        LOG.warn(\"Capital letters in a group name is now deprecated. \""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2Fduk%3D","line":497,"in_reply_to":"AAAAOn%2F%2Fmo4%3D","updated":"2013-05-08 20:57:17.000000000","message":"The user changing that value is what I was thinking of when I asked the question about whether the point of this is to force the user to use all lower case, or whether the point is to allow the name to use any case.","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"820fe4fda1a6ea11be48f55884c3078a4e5b49c3","unresolved":false,"context_lines":[{"line_number":494,"context_line":""},{"line_number":495,"context_line":""},{"line_number":496,"context_line":"def _normalize_group_name(group_name):"},{"line_number":497,"context_line":"    if (group_name and group_name !\u003d \u0027DEFAULT\u0027 and"},{"line_number":498,"context_line":"        any([x.isupper() for x in group_name])):"},{"line_number":499,"context_line":"        group_name \u003d group_name.lower()"},{"line_number":500,"context_line":"        LOG.warn(\"Capital letters in a group name is now deprecated. \""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2Fmo4%3D","line":497,"in_reply_to":"AAAAOn%2F%2Fn7Y%3D","updated":"2013-05-02 05:45:09.000000000","message":"Well I guess someone can intentionally change the default \"DEFAULT\" in the conf file. should we consider that case also?","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"67d5966f784d08c579a9419f9b0290c32fdafb2b","unresolved":false,"context_lines":[{"line_number":494,"context_line":""},{"line_number":495,"context_line":""},{"line_number":496,"context_line":"def _normalize_group_name(group_name):"},{"line_number":497,"context_line":"    if (group_name and group_name !\u003d \u0027DEFAULT\u0027 and"},{"line_number":498,"context_line":"        any([x.isupper() for x in group_name])):"},{"line_number":499,"context_line":"        group_name \u003d group_name.lower()"},{"line_number":500,"context_line":"        LOG.warn(\"Capital letters in a group name is now deprecated. \""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2Fn7Y%3D","line":497,"in_reply_to":"AAAAOn%2F%2Fn9c%3D","updated":"2013-05-01 14:58:34.000000000","message":"Actually if group_name is None, it should return None.\n\nI\u0027m not sure we should fix DEFAULT since it is created and handled only internally.\n\nI did think of changing the normalization process to your version but wanted to be clear what was happening here. Will change it after the two questions above has resolved.","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"555d8366ae02d8bf1d4e6730e823d6f8dbe30963","unresolved":false,"context_lines":[{"line_number":497,"context_line":"    if (group_name and group_name !\u003d \u0027DEFAULT\u0027 and"},{"line_number":498,"context_line":"        any([x.isupper() for x in group_name])):"},{"line_number":499,"context_line":"        group_name \u003d group_name.lower()"},{"line_number":500,"context_line":"        LOG.warn(\"Capital letters in a group name is now deprecated. \""},{"line_number":501,"context_line":"                 \"Please use \u0027%s\u0027 instead.\" % group_name)"},{"line_number":502,"context_line":"    return group_name"},{"line_number":503,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2Fn8g%3D","line":500,"updated":"2013-05-01 14:49:28.000000000","message":"Do we need to warn end-users? We\u0027re going to do a case-insensitive search in the config settings, but does the end user care about that?","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"a2934a329bbe9cb2a7e728445f08ef93cc1cbef3","unresolved":false,"context_lines":[{"line_number":497,"context_line":"    if (group_name and group_name !\u003d \u0027DEFAULT\u0027 and"},{"line_number":498,"context_line":"        any([x.isupper() for x in group_name])):"},{"line_number":499,"context_line":"        group_name \u003d group_name.lower()"},{"line_number":500,"context_line":"        LOG.warn(\"Capital letters in a group name is now deprecated. \""},{"line_number":501,"context_line":"                 \"Please use \u0027%s\u0027 instead.\" % group_name)"},{"line_number":502,"context_line":"    return group_name"},{"line_number":503,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2Fduc%3D","line":500,"in_reply_to":"AAAAOn%2F%2Fn7M%3D","updated":"2013-05-08 20:57:17.000000000","message":"Sorry, I wasn\u0027t clear. I meant admins and devs.","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"67d5966f784d08c579a9419f9b0290c32fdafb2b","unresolved":false,"context_lines":[{"line_number":497,"context_line":"    if (group_name and group_name !\u003d \u0027DEFAULT\u0027 and"},{"line_number":498,"context_line":"        any([x.isupper() for x in group_name])):"},{"line_number":499,"context_line":"        group_name \u003d group_name.lower()"},{"line_number":500,"context_line":"        LOG.warn(\"Capital letters in a group name is now deprecated. \""},{"line_number":501,"context_line":"                 \"Please use \u0027%s\u0027 instead.\" % group_name)"},{"line_number":502,"context_line":"    return group_name"},{"line_number":503,"context_line":""}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2Fn7M%3D","line":500,"in_reply_to":"AAAAOn%2F%2Fn8g%3D","updated":"2013-05-01 14:58:34.000000000","message":"by end-users do you mean by the admins? this message won\u0027t be seen by tenants and I think we should at least warn admins and devs about this?","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"bb33e58f35ce819aa5f5d4b06812aa99157879bd","unresolved":false,"context_lines":[{"line_number":499,"context_line":"        group_name \u003d group_name.lower()"},{"line_number":500,"context_line":"        LOG.warn(\"Capital letters in a group name is now deprecated. \""},{"line_number":501,"context_line":"                 \"Please use \u0027%s\u0027 instead.\" % group_name)"},{"line_number":502,"context_line":"    return group_name"},{"line_number":503,"context_line":""},{"line_number":504,"context_line":""},{"line_number":505,"context_line":"class Opt(object):"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2FctQ%3D","line":502,"updated":"2013-05-09 09:16:08.000000000","message":"I\u0027d be happy with simply:\n\n  def _normalize_group_name(group_name):\n      if group_name \u003d\u003d \u0027DEFAULT\u0027:\n          return group_name\n      return group_name.lower()\n\nLooking at e.g. get_from_config_parser() and new_section() usage, I don\u0027t see a need for supporting \u0027not group_name\u0027 \n\nWe just need to special-case \u0027DEFAULT\u0027 by not normalizing it\n\nAnd I\u0027m happy to consider adding a deprecation warning later - but doing it here seems like it would be pretty annoying for users","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"fca255e2c1705d1ec17d7483df034f8fc4d9f5d3","unresolved":false,"context_lines":[{"line_number":499,"context_line":"        group_name \u003d group_name.lower()"},{"line_number":500,"context_line":"        LOG.warn(\"Capital letters in a group name is now deprecated. \""},{"line_number":501,"context_line":"                 \"Please use \u0027%s\u0027 instead.\" % group_name)"},{"line_number":502,"context_line":"    return group_name"},{"line_number":503,"context_line":""},{"line_number":504,"context_line":""},{"line_number":505,"context_line":"class Opt(object):"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2FcaE%3D","line":502,"in_reply_to":"AAAAOn%2F%2FctQ%3D","updated":"2013-05-09 14:37:35.000000000","message":"one problem I see is that None does not have lower().","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"bb33e58f35ce819aa5f5d4b06812aa99157879bd","unresolved":false,"context_lines":[{"line_number":1052,"context_line":"            return super(ConfigParser, self).parse(f)"},{"line_number":1053,"context_line":""},{"line_number":1054,"context_line":"    def new_section(self, section):"},{"line_number":1055,"context_line":"        self.section \u003d _normalize_group_name(section)"},{"line_number":1056,"context_line":"        self.sections.setdefault(self.section, {})"},{"line_number":1057,"context_line":""},{"line_number":1058,"context_line":"    def assignment(self, key, value):"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2FcuM%3D","line":1055,"updated":"2013-05-09 09:16:08.000000000","message":"Yes, this is a good place to normalize group names when reading config files","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"555d8366ae02d8bf1d4e6730e823d6f8dbe30963","unresolved":false,"context_lines":[{"line_number":1559,"context_line":"        if isinstance(group, OptGroup):"},{"line_number":1560,"context_line":"            key \u003d (group.name, name)"},{"line_number":1561,"context_line":"        else:"},{"line_number":1562,"context_line":"            key \u003d (_normalize_group_name(group), name)"},{"line_number":1563,"context_line":"        try:"},{"line_number":1564,"context_line":"            return self.__cache[key]"},{"line_number":1565,"context_line":"        except KeyError:"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2Fn8M%3D","line":1562,"updated":"2013-05-01 14:49:28.000000000","message":"Is it possible to normalize the values in the public methods, and not re-do that work in the private methods? Or do other classes in the config code invoke the private methods?","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"0b2895f67df9ab71404e2173805df97bc97d3709","unresolved":false,"context_lines":[{"line_number":1559,"context_line":"        if isinstance(group, OptGroup):"},{"line_number":1560,"context_line":"            key \u003d (group.name, name)"},{"line_number":1561,"context_line":"        else:"},{"line_number":1562,"context_line":"            key \u003d (_normalize_group_name(group), name)"},{"line_number":1563,"context_line":"        try:"},{"line_number":1564,"context_line":"            return self.__cache[key]"},{"line_number":1565,"context_line":"        except KeyError:"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2FdKk%3D","line":1562,"in_reply_to":"AAAAOn%2F%2FduQ%3D","updated":"2013-05-09 01:39:43.000000000","message":"Yes. This method is private and will only be invoked inside cfg.py","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":2472,"name":"Doug Hellmann","email":"dhellmann@redhat.com","username":"doug-hellmann"},"change_message_id":"a2934a329bbe9cb2a7e728445f08ef93cc1cbef3","unresolved":false,"context_lines":[{"line_number":1559,"context_line":"        if isinstance(group, OptGroup):"},{"line_number":1560,"context_line":"            key \u003d (group.name, name)"},{"line_number":1561,"context_line":"        else:"},{"line_number":1562,"context_line":"            key \u003d (_normalize_group_name(group), name)"},{"line_number":1563,"context_line":"        try:"},{"line_number":1564,"context_line":"            return self.__cache[key]"},{"line_number":1565,"context_line":"        except KeyError:"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2FduQ%3D","line":1562,"in_reply_to":"AAAAOn%2F%2Fn7I%3D","updated":"2013-05-08 20:57:17.000000000","message":"OK. The method is marked private because it has a _ prefix in the name, so I wouldn\u0027t think other classes would use it.","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"67d5966f784d08c579a9419f9b0290c32fdafb2b","unresolved":false,"context_lines":[{"line_number":1559,"context_line":"        if isinstance(group, OptGroup):"},{"line_number":1560,"context_line":"            key \u003d (group.name, name)"},{"line_number":1561,"context_line":"        else:"},{"line_number":1562,"context_line":"            key \u003d (_normalize_group_name(group), name)"},{"line_number":1563,"context_line":"        try:"},{"line_number":1564,"context_line":"            return self.__cache[key]"},{"line_number":1565,"context_line":"        except KeyError:"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2Fn7I%3D","line":1562,"in_reply_to":"AAAAOn%2F%2Fn8M%3D","updated":"2013-05-01 14:58:34.000000000","message":"Yes other classes do use this method. OptGroup. I\u0027m not sure I understand what you mean here...","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"90f8cf49c9477f94a554615cd2f6528d0ff79d22","unresolved":false,"context_lines":[{"line_number":1559,"context_line":"        if isinstance(group, OptGroup):"},{"line_number":1560,"context_line":"            key \u003d (group.name, name)"},{"line_number":1561,"context_line":"        else:"},{"line_number":1562,"context_line":"            key \u003d (_normalize_group_name(group), name)"},{"line_number":1563,"context_line":"        try:"},{"line_number":1564,"context_line":"            return self.__cache[key]"},{"line_number":1565,"context_line":"        except KeyError:"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2FmpA%3D","line":1562,"in_reply_to":"AAAAOn%2F%2Fn8M%3D","updated":"2013-05-02 05:41:36.000000000","message":"oh now I understand what you mean. Even though we change the public methods, operations like cfg.CONF.somegroup.someoption need private methods to be changed.","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"b1f88ff122ef1d96a8d549586030d13ef2ccefe7","unresolved":false,"context_lines":[{"line_number":1576,"context_line":"        :raises: NoSuchOptError, NoSuchGroupError, ConfigFileValueError,"},{"line_number":1577,"context_line":"                 TemplateSubstitutionError"},{"line_number":1578,"context_line":"        \"\"\""},{"line_number":1579,"context_line":"        if group is None and _normalize_group_name(name) in self._groups:"},{"line_number":1580,"context_line":"            return self.GroupAttr(self, self._get_group(name))"},{"line_number":1581,"context_line":""},{"line_number":1582,"context_line":"        info \u003d self._get_opt_info(name, group)"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2FoPg%3D","line":1579,"updated":"2013-05-01 08:47:33.000000000","message":"this looks much better","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"}],"tests/test_cfg.py":[{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"63fe4a7ddeb8acff69427becf76797203008cc8b","unresolved":false,"context_lines":[{"line_number":1336,"context_line":"        self.assertTrue(hasattr(self.conf, \u0027blaa\u0027))"},{"line_number":1337,"context_line":"        self.assertTrue(hasattr(self.conf.blaa, \u0027foo\u0027))"},{"line_number":1338,"context_line":"        self.assertEquals(self.conf.blaa.foo, \u0027bar\u0027)"},{"line_number":1339,"context_line":""},{"line_number":1340,"context_line":""},{"line_number":1341,"context_line":"class MappingInterfaceTestCase(BaseTestCase):"},{"line_number":1342,"context_line":""}],"source_content_type":"text/x-python","patch_set":1,"id":"AAAAOn%2F%2FogY%3D","line":1339,"updated":"2013-05-01 04:09:07.000000000","message":"Are there any test cases I\u0027ve missed?","commit_id":"7773339d2210ea4c8e88c1b99e6eba4d99e3a776"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"bb33e58f35ce819aa5f5d4b06812aa99157879bd","unresolved":false,"context_lines":[{"line_number":1317,"context_line":"        self.conf.register_group(OptGroup(\u0027BLAA\u0027))"},{"line_number":1318,"context_line":"        self.conf.register_cli_opt(StrOpt(\u0027foo\u0027), group\u003d\u0027blaa\u0027)"},{"line_number":1319,"context_line":""},{"line_number":1320,"context_line":"        self.conf([\u0027--blaa-foo\u0027, \u0027bar\u0027])"},{"line_number":1321,"context_line":""},{"line_number":1322,"context_line":"        self.assertTrue(hasattr(self.conf, \u0027blaa\u0027))"},{"line_number":1323,"context_line":"        self.assertTrue(hasattr(self.conf.blaa, \u0027foo\u0027))"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2Fcso%3D","line":1320,"updated":"2013-05-09 09:16:08.000000000","message":"I\u0027m fine with only normalizing the config file values, since that\u0027s what we care about\n\nFrankly, if anyone tried registering a CLI option right now using an uppercase group name .... then they\u0027d realize that uppercase names are silly:\n\n  --DATABASE-sql-connection\u003d....\n\nSo, there\u0027s no legacy usage of uppercase group names in the CLI that we care about supporting when quantum switches to oslo db code","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"fca255e2c1705d1ec17d7483df034f8fc4d9f5d3","unresolved":false,"context_lines":[{"line_number":1317,"context_line":"        self.conf.register_group(OptGroup(\u0027BLAA\u0027))"},{"line_number":1318,"context_line":"        self.conf.register_cli_opt(StrOpt(\u0027foo\u0027), group\u003d\u0027blaa\u0027)"},{"line_number":1319,"context_line":""},{"line_number":1320,"context_line":"        self.conf([\u0027--blaa-foo\u0027, \u0027bar\u0027])"},{"line_number":1321,"context_line":""},{"line_number":1322,"context_line":"        self.assertTrue(hasattr(self.conf, \u0027blaa\u0027))"},{"line_number":1323,"context_line":"        self.assertTrue(hasattr(self.conf.blaa, \u0027foo\u0027))"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2FcZA%3D","line":1320,"in_reply_to":"AAAAOn%2F%2Fcso%3D","updated":"2013-05-09 14:37:35.000000000","message":"Will remove this case. Done","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"bb33e58f35ce819aa5f5d4b06812aa99157879bd","unresolved":false,"context_lines":[{"line_number":1325,"context_line":""},{"line_number":1326,"context_line":"        self.assertTrue(hasattr(self.conf, \u0027BLAA\u0027))"},{"line_number":1327,"context_line":"        self.assertTrue(hasattr(self.conf.BLAA, \u0027foo\u0027))"},{"line_number":1328,"context_line":"        self.assertEquals(self.conf.BLAA.foo, \u0027bar\u0027)"},{"line_number":1329,"context_line":""},{"line_number":1330,"context_line":"    def test_arg_group_in_config_file_with_capital_name(self):"},{"line_number":1331,"context_line":"        self.conf.register_group(OptGroup(\u0027blaa\u0027))"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2FctA%3D","line":1328,"updated":"2013-05-09 09:16:08.000000000","message":"IMHO, if you register a group called \u0027BLAA\u0027 then you should only be able to reference it using self.conf.BLAA\n\nwe don\u0027t actually need to support both self.conf.blaa and self.conf.BLAA and doing so will just lead to inconsistencies in the code\n\nwhen quantum switches to using the oslo DB code, the same commit to do that can also do s/CONF.DATABASE/CONF.database/","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":1994,"name":"Zhongyue Luo","email":"zhongyue.luo@gmail.com","username":"zyluo"},"change_message_id":"fca255e2c1705d1ec17d7483df034f8fc4d9f5d3","unresolved":false,"context_lines":[{"line_number":1325,"context_line":""},{"line_number":1326,"context_line":"        self.assertTrue(hasattr(self.conf, \u0027BLAA\u0027))"},{"line_number":1327,"context_line":"        self.assertTrue(hasattr(self.conf.BLAA, \u0027foo\u0027))"},{"line_number":1328,"context_line":"        self.assertEquals(self.conf.BLAA.foo, \u0027bar\u0027)"},{"line_number":1329,"context_line":""},{"line_number":1330,"context_line":"    def test_arg_group_in_config_file_with_capital_name(self):"},{"line_number":1331,"context_line":"        self.conf.register_group(OptGroup(\u0027blaa\u0027))"}],"source_content_type":"text/x-python","patch_set":5,"id":"AAAAOn%2F%2FcZE%3D","line":1328,"in_reply_to":"AAAAOn%2F%2FctA%3D","updated":"2013-05-09 14:37:35.000000000","message":"Done","commit_id":"78ade249842c6cafc415670243d0b01cd3a211c7"},{"author":{"_account_id":1247,"name":"Mark McLoughlin","email":"markmc@redhat.com","username":"markmc"},"change_message_id":"22501e6b388167d750e9ba3a90b4152dcbd0e4db","unresolved":false,"context_lines":[{"line_number":1296,"context_line":"        self.assertEquals(self.conf.blaa.foo, \u0027bar\u0027)"},{"line_number":1297,"context_line":""},{"line_number":1298,"context_line":"    def test_arg_group_in_config_file_with_capital_name(self):"},{"line_number":1299,"context_line":"        self.conf.register_group(OptGroup(\u0027blaa\u0027))"},{"line_number":1300,"context_line":"        self.conf.register_opt(StrOpt(\u0027foo\u0027), group\u003d\u0027blaa\u0027)"},{"line_number":1301,"context_line":""},{"line_number":1302,"context_line":"        paths \u003d self.create_tempfiles([(\u0027test\u0027,"}],"source_content_type":"text/x-python","patch_set":7,"id":"AAAAOn%2F%2Fbto%3D","line":1299,"updated":"2013-05-09 19:44:41.000000000","message":"Might have been good to have a variant of this test with OptGroup(\u0027BLAA\u0027) to show that this means the group is referenced by self.conf.BLAA ... but I\u0027m fine without it","commit_id":"3bad8f95fefb4f8d091d7a5395e4bb6ff80c17bb"}]}
