#6215 closed defect (fixed)
The roadmap module doesn't read [milestone-groups]
Reported by: | Owned by: | Christian Boos | |
---|---|---|---|
Priority: | normal | Milestone: | 0.11 |
Component: | roadmap | Version: | devel |
Severity: | minor | Keywords: | |
Cc: | Branch: | ||
Release Notes: | |||
API Changes: | |||
Internal Changes: |
Description
The roadmap module doesn't read [milestone-groups] section in trac.ini.
There's an incorrect line in _get_ticket_groups() in roadmap.py that reads:
if 'milestone-groups' in self.config:
But it must be:
if 'milestone-groups' in self.config.sections():
Attachments (0)
Change History (4)
comment:1 by , 17 years ago
comment:2 by , 17 years ago
Owner: | changed from | to
---|
I think this uncovers a bug: parser.has_section
doesn't take into account inherited config files, so I think __contains__
should be implemented in term of ... in sections()
.
comment:4 by , 17 years ago
Yes it now works correctly on my setup. You're right about the [inherited] bit, I had the miltstone-groups in an inherited ini file.
The two are the same, unless I am missing something. Are you actually seeing an error of some kind?