Edgewall Software
Modify

Opened 14 years ago

Closed 14 years ago

Last modified 14 years ago

#6215 closed defect (fixed)

The roadmap module doesn't read [milestone-groups]

Reported by: tjorvi@… 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 Noah Kantrowitz, 14 years ago

The two are the same, unless I am missing something. Are you actually seeing an error of some kind?

comment:2 by Christian Boos, 14 years ago

Owner: changed from Christopher Lenz to Christian Boos

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:3 by Christian Boos, 14 years ago

Resolution: fixed
Status: newclosed

Should be fixed by r6079.

comment:4 by tjorvi@…, 14 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.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Christian Boos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Christian Boos to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.