Modify

Opened 3 years ago

Closed 3 years ago

#9143 closed defect (worksforme)

ERROR: Macro TracJSGanttChart(milestone=Test) failed

Reported by: anonymous Owned by: ChrisNelson
Priority: normal Component: TracJsGanttPlugin
Severity: normal Keywords: error:userstart
Cc: rjollos Trac Release: 0.11

Description

I was installed jsgantt-plugin-0.9 based on trac-0.11,but i get some error:
ERROR: Macro TracJSGanttChart(milestone=Test) failed
userstart
The trac.log is :

2011-09-01 07:45:11,995 Trac[formatter] ERROR: Macro TracJSGanttChart(milestone=Test) failed
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/Trac-0.11.1-py2.6.egg/trac/wiki/formatter.py", line 468, in _macro_formatter
    return macro.process(args, in_paragraph=True)
  File "/usr/lib/python2.6/site-packages/Trac-0.11.1-py2.6.egg/trac/wiki/formatter.py", line 179, in process
    text = self.processor(text)
  File "/usr/lib/python2.6/site-packages/Trac-0.11.1-py2.6.egg/trac/wiki/formatter.py", line 166, in _macro_processor
    text)
  File "build/bdist.linux-x86_64/egg/tracjsgantt/tracjsgantt.py", line 896, in expand_macro
    tasks = self._add_tasks(options)
  File "build/bdist.linux-x86_64/egg/tracjsgantt/tracjsgantt.py", line 844, in _add_tasks
    self._process_tickets()
  File "build/bdist.linux-x86_64/egg/tracjsgantt/tracjsgantt.py", line 387, in _process_tickets
    if self.fields.get(field) and t[self.fields[field]] == '--':
KeyError: u'userstart'

next is the configuration in trac.ini

[trac-jsgantt]
  # To work with Timing and Estimation for percent complete
  fields.estimate = estimatedhours
  fields.worked = totalhours
  # Each unit in estimate is 1/8 of a day
  days_per_estimate = 0.125

  # Custom fields for start and due dates
  fields.start = userstart
  fields.finish = userfinish
  #
  date_format = %Y-%m-%d
  milestone_type = milestone

I think it different with #8859

Attachments (0)

Change History (3)

comment:1 Changed 3 years ago by anonymous

  • Cc rjollos added
  • Keywords error:userstart added

comment:2 Changed 3 years ago by ChrisNelson

I configured userstart in my trac.ini and I do not see this behavior. If the OP reads this, please post your custom field configuration for userstart.

comment:3 Changed 3 years ago by ChrisNelson

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

No response in a month.

Add Comment

Modify Ticket

Action
as closed .
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.