Modify

Opened 13 years ago

Closed 13 years ago

#9143 closed defect (worksforme)

ERROR: Macro TracJSGanttChart(milestone=Test) failed

Reported by: anonymous Owned by: Chris Nelson
Priority: normal Component: TracJsGanttPlugin
Severity: normal Keywords: error:userstart
Cc: Ryan J Ollos 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 13 years ago by anonymous

Cc: Ryan J Ollos added; anonymous removed
Keywords: error:userstart added

comment:2 Changed 13 years ago by Chris Nelson

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 13 years ago by Chris Nelson

Resolution: worksforme
Status: newclosed

No response in a month.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Chris Nelson.
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.