Opened 5 years ago

Closed 5 years ago

#9900 closed defect (fixed)

Installing ShellExample causes Announcer to break

Reported by: anonymous Owned by: rjollos
Priority: normal Component: ShellExampleMacro
Severity: normal Keywords:
Cc: Trac Release: 0.12

Description (last modified by rjollos)

When ShellExample is added to my Trac, I then get announver errors like this;

2012-03-12 17:17:57,519 Trac[api] ERROR: AnnouncementSystem failed.
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/announcerplugin/", line 369, in _real_send
    distributor.distribute(transport, packages[transport], evt)
  File "/usr/lib/python2.4/site-packages/announcerplugin/distributors/", line 238, in distribute
    self._do_send(transport, event, k, v, fmtdict[k])
  File "/usr/lib/python2.4/site-packages/announcerplugin/distributors/", line 314, in _do_send
    output = formatter.format(transport, event.realm, format, event)
  File "/usr/lib/python2.4/site-packages/announcerplugin/formatters/", line 97, in format
    return self._format_html(event)
  File "/usr/lib/python2.4/site-packages/announcerplugin/formatters/", line 215, in _format_html
    dirs += provider.get_templates_dirs()
TypeError: iteration over non-sequence

Removing the ShellExample plugin allows announcer to work as before.

We are using the following on Postgres

Trac 0.12.3
Bitten 0.6.1dev-r1009
ShellExampleProcessor 0.12.2 (disabled)
SlideShow 0.2
TracAccountManager 0.3.2
TracAnnouncer 0.11.1-r10458
TracXMLRPC 1.1.2-r11306
TypedTicketWorkflow-plugin 0.1dev-r4791

Attachments (0)

Change History (3)

comment:1 Changed 5 years ago by rjollos

  • Description modified (diff)

comment:2 Changed 5 years ago by rjollos

  • Owner changed from nmadura to rjollos
  • Status changed from new to assigned

get_templates_dirs needs to return an empty list, but it is returning None. I'll apply the (presumed) fix. I hope that is okay.

comment:3 Changed 5 years ago by rjollos

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

(In [11485]) Fixes #9900: get_templates_dirs needs to return an empty list, but it was returning None. This should fix a reported instance of the AnnouncerPlugin throwing an error.

Add Comment

Modify Ticket

as closed The owner will remain rjollos.
The resolution will be deleted. Next status will be 'reopened'.

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

Note: See TracTickets for help on using tickets.