Opened 8 years ago

Closed 4 years ago

#4873 closed defect (wontfix)

Traceback when adding a new group

Reported by: fpraca Owned by: davecole
Priority: normal Component: CustomRoadmapPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11


When trying to put a new group in the roadmap-groups section with Trac-, I get this traceback :

Traceback (most recent call last):
  File "/usr/local/lib/python2.5/site-packages/Trac-", line 367, in send_error
  File "/usr/local/lib/python2.5/site-packages/Trac-", line 688, in render_template
    template = self.load_template(filename, method=method)
  File "/usr/local/lib/python2.5/site-packages/Trac-", line 663, in load_template
    self.templates = TemplateLoader(self.get_all_templates_dirs(),
  File "/usr/local/lib/python2.5/site-packages/Trac-", line 409, in get_all_templates_dirs
    for provider in self.template_providers:
  File "/usr/local/lib/python2.5/site-packages/Trac-", line 67, in extensions
    return filter(None, [component.compmgr[cls] for cls in extensions])
  File "/usr/local/lib/python2.5/site-packages/Trac-", line 204, in __getitem__
    component = cls(self)
  File "/usr/local/lib/python2.5/site-packages/Trac-", line 108, in maybe_init
  File "build/bdist.freebsd-7.0-RELEASE-i386/egg/customroadmap/", line 72, in __init__
    self.groups = get_roadmap_config(self.config)
  File "build/bdist.freebsd-7.0-RELEASE-i386/egg/customroadmap/", line 62, in get_roadmap_config
    groups = parse_roadmap_config(raw_groups)
  File "build/bdist.freebsd-7.0-RELEASE-i386/egg/customroadmap/", line 34, in parse_roadmap_config
    status = attrs.get('status', [])
AttributeError: 'NoneType' object has no attribute 'get'

Here is my roadmap-groups configuration :

groups = closed,open,new,in_QA

closed.status = closed
closed.color = #bae0ba
closed.counts = true

open.status = assigned,reopened
open.color = #ff8800
#open.count = true

new.status = new
new.color = #ff0000
#new.count = true

QA.status = in_QA
QA.color = #ff0000
#QA.count = true

FYI, I use the enterprise workflow provided as example with 0.11

Attachments (0)

Change History (2)

comment:1 Changed 7 years ago by anonymous

You have "in_QA" in your groups, but use just "QA.status" later.

I figured one gets the same problem if a group is added in "groups" but is not used/configured (like group.status).

comment:2 Changed 4 years ago by rjollos

  • Resolution set to wontfix
  • Status changed from new to closed

The functionality of this plugin is available in the Trac core with 0.11. See CustomRoadmapPlugin for more details.

Add Comment

Modify Ticket

as closed The owner will remain davecole.
The resolution will be deleted. Next status will be 'reopened'.

E-mail address and user name can be saved in the Preferences.

Note: See TracTickets for help on using tickets.