Modify

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#13864 closed defect (fixed)

AccountManagerPlugin doesn't manage to send emails under Trac 1.4

Reported by: na-Itms Owned by: Ryan J Ollos
Priority: normal Component: AccountManagerPlugin
Severity: major Keywords:
Cc: Trac Release: 1.4

Description

Hello, after upgrading Trac to 1.4, I upgraded AccountManagerPlugin to the development version.

I am currently using the latest revision r17706.

Everything works fine except sending emails for password reset and address verification. In both situations I get the following in the logs:

2020-08-05 20:17:35,212 Trac[mail] WARNING: EmailDistributor caught exception while formatting account to text/plain for email: <class 'acct_mgr.notification.AccountNotificationFormatter'>
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/trac/notification/mail.py", line 487, in distribute
    outputs[fmt] = formatter.format(transport, fmt, event)
  File "build/bdist.linux-x86_64/egg/acct_mgr/notification.py", line 171, in format
    return self._format_body(data, template_name)
  File "build/bdist.linux-x86_64/egg/acct_mgr/notification.py", line 179, in _format_body
    template = chrome.load_template(template_name, method='text')
TypeError: load_template() got an unexpected keyword argument 'method'

Thanks for the work on the plugin, and thanks in advance for your help.

Attachments (0)

Change History (3)

comment:1 Changed 4 years ago by Ryan J Ollos

Thanks for reporting!

comment:2 Changed 4 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

In 17831:

TracAccountManager 0.6dev: Fix email notification with Trac 1.4.x

Fixes #13864.

comment:3 Changed 4 years ago by na-Itms

Thank you so much for the quick fix. I forgot to report back, but it works smoothly for us now.

Modify Ticket

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