Modify

Opened 16 years ago

Closed 12 years ago

#4873 closed defect (wontfix)

Traceback when adding a new group

Reported by: Frédéric PRACA Owned by: Dave Cole
Priority: normal Component: CustomRoadmapPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

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

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

Here is my roadmap-groups configuration :

[roadmap-groups]
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 15 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 12 years ago by Ryan J Ollos

Resolution: wontfix
Status: newclosed

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

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Dave Cole.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


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

 
Note: See TracTickets for help on using tickets.