Ticket #3390 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

summary option cause error with direct numbered tickets

Reported by: gotoh Assigned to: gotoh
Priority: normal Component: TicketBoxMacro
Severity: normal Keywords:
Cc: Trac Release: 0.11

Description

The 'summary' option works fine with report numbers like [[TicketBox({1},summary)]] but fail with direct numbers like [[TicketBox(1,2,summary)]] It displays following error message:

Error: Macro TicketBox(1,2,inline,summary) failed

And logged as:

2008-07-15 14:09:55,431 Trac[formatter] ERROR: Macro TicketBox(1,2,inline,summary) failed
Traceback (most recent call last):
  File "c:\develop\trac\i18n-original\trac\wiki\formatter.py", line 468, in _macro_formatter
    return macro.process(args, in_paragraph=True)
  File "c:\develop\trac\i18n-original\trac\wiki\formatter.py", line 179, in process
    text = self.processor(text)
  File "c:\develop\trac\i18n-original\trac\wiki\formatter.py", line 166, in _macro_processor
    text)
  File "c:\trac\projects\test\plugins\TicketBox.py", line 177, in expand_macro
    return execute(formatter, args)
  File "c:\trac\projects\test\plugins\TicketBox.py", line 142, in execute
    html = string.join([wiki_to_oneliner("%s (#%d)" % (summaries[n],n),
KeyError: 1

Attachments

Change History

07/23/08 04:47:03 changed by gotoh

  • status changed from new to closed.
  • resolution set to fixed.

(In [4052]) Support using of 'summary' option with direct numbered tickets. Close #3390.


Add/Change #3390 (summary option cause error with direct numbered tickets)




Change Properties
Action