Edgewall Software
Modify

Opened 16 years ago

Closed 15 years ago

#282 closed defect (fixed)

Bitten timeline event provider is broken w/ the latest Trac and Genshi dev. release

Reported by: manu.blot@… Owned by: cmlenz
Priority: major Milestone: 0.6
Component: Trac plugin Version: dev
Keywords: Cc:
Operating System: BSD

Description

Since I've upgraded Trac and Genshi, the Timeline page in Trac fails with the following error:

Builds event provider (BuildController) failed:
LookupError: unknown encoding: build-project

System Information

Trac: 0.11dev-r6886
Python: 2.5 (release25-maint, Dec 9 2006, 14:35:53)
setuptools: 0.6c3
SQLite: 3.3.8
pysqlite: 2.3.2
Genshi: 0.5dev-r847
Pygments: 0.9
Subversion: 1.4.2 (r22196)
jQuery: 1.2.3

(using the branches/experimental/trac-0.11 branch)

Attachments (0)

Change History (5)

comment:1 Changed 16 years ago by anonymous

  • Priority changed from blocker to major

comment:2 Changed 16 years ago by Emmanuel Blot <manu.blot@…>

The Trac log shows the following details about the error:

2008-04-28 17:59:13,262 Trac[__init__] ERROR: Timeline event provider BuildController failed
Traceback (most recent call last):
  File "/home/local/engine/trac/trac/timeline/web_ui.py", line 160, in process_request
    filters):
  File "build/bdist.linux-i686/egg/bitten/web_ui.py", line 493, in get_timeline_events
    steps = [Markup('<em>%s</em>', step) for step in steps]
LookupError: unknown encoding: build-duo
2008-04-28 17:59:13,265 Trac[__init__] WARNING: 500 Trac Error (<p class="message">Builds event provider (<tt>BuildController</tt>) failed:<br/>LookupError: unknown encoding: build-duo</p><p>You may want to see the other kind of events from the <a href="/trac/fta/timeline?ticket=on&amp;changeset=on&amp;milestone=on&amp;wiki=on">Timeline</a></p>)

comment:3 Changed 16 years ago by Emmanuel Blot <manu.blot@…>

With Genshi 0.5-pre, the following patch seems to work

  • bitten/web_ui.py

     
    490490                    for step, error in errors:
    491491                        if step not in steps:
    492492                            steps.append(step)
    493                     steps = [Markup('<em>%s</em>', step) for step in steps]
     493                    steps = [Markup('<em>%s</em>' % step) for step in steps]
    494494                    if len(steps) < 2:
    495495                        message = steps[0]
    496496                    elif len(steps) == 2:
     
    498498                    elif len(steps) > 2:
    499499                        message = Markup(', ').join(steps[:-1]) + ', and ' + \
    500500                                  steps[-1]
    501                     message = Markup('Step%s %s failed',
    502                                      len(steps) != 1 and 's' or '', message)
     501                    message = Markup('Step%s %s failed' % \
     502                                     (len(steps) != 1 and 's' or '', message))
    503503            yield event_kinds[status], href, title, stopped, None, message
    504504
    505505    # Internal methods

comment:4 follow-up: Changed 16 years ago by ebray

This was fixed by cmlenz in r551.

comment:5 in reply to: ↑ 4 Changed 15 years ago by dfraser

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

Replying to ebray:

This was fixed by cmlenz in r551.

Marking as fixed, then...

Add Comment

Modify Ticket

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