Ticket #2994 (closed defect: fixed)

Opened 7 months ago

Last modified 3 weeks ago

Fail to show all tickets dependency graph (asciiCrítico23ordinal not in range(128))

Reported by: deal.rafaeltrestini@bvsistemas.com.br Assigned to: ftiede
Priority: normal Component: TracTicketDepgraphPlugin
Severity: normal Keywords:
Cc: Trac Release: 0.10

Description

Hi,

When I'm trying to create a graph with all tickets dependencies, the follow message is displayed:

Error: Macro DepGraph(None) failed

asciiCrítico23ordinal not in range(128)

In log, I have:

2008-05-06 12:46:01,942 Trac[formatter] ERROR: Macro DepGraph(None) failed
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 439, in _macro_formatter
    return macro.process(self.req, args, True)
  File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 112, in process
    text = self.processor(req, text)
  File "/usr/lib/python2.4/site-packages/trac/wiki/formatter.py", line 100, in _macro_processor
    return self.macro_provider.render_macro(req, self.name, text)
  File "build/bdist.linux-i686/egg/depgraph/depgraph.py", line 156, in render_macro
  File "build/bdist.linux-i686/egg/depgraph/depgraph.py", line 75, in _depgraph_all
UnicodeEncodeError: 'ascii' codec can't encode character u'\xed' in position 2: ordinal not in range(128)

Looking at log message and configuration of trac, I've verified that the mistake was in a name used for Severity field (the name used was Crítico). The error message said it, but not in clarified form.

My suggestion is to leave this "error" message more explicit.

Regards

Rafael

Attachments

Change History

05/06/08 12:50:37 changed by ftiede

  • status changed from new to closed.
  • type changed from enhancement to defect.
  • resolution set to fixed.

This is a defect in decoding a ticket's severity to colorize the graph nodes. This is fixed in rev [3626]. Unfortunately so far colorizing the graph will not work if non-standard severities are used.

11/11/08 04:32:56 changed by ftiede

(In [4766]) Now using trac's internal priority enum to colorize the nodes. As of now only first five priorities are used. Hopefully this also works with non-ascii characters in a priority's name, see #2994.


Add/Change #2994 (Fail to show all tickets dependency graph (asciiCrítico23ordinal not in range(128)))




Change Properties
Action