Edgewall Software
Modify

Opened 15 years ago

Closed 15 years ago

#9142 closed defect (cantfix)

AttributeError: 'NotificationSystem' object has no attribute 'send_email'

Reported by: wandi.ms@… Owned by:
Priority: high Milestone:
Component: notification Version: 0.11.5
Severity: normal Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

How to Reproduce

While doing a POST operation on /admin/accounts/users, Trac issued an internal error.

AttributeError: 'NotificationSystem' object has no attribute 'send_email

Request parameters:

{'__FORM_TOKEN': u'440cd2dc2d804e108a4845fb',
 'cat_id': u'accounts',
 'panel_id': u'users',
 'path_info': None,
 'remove': u'Remove selected accounts',
 'sel': u'user.1'}

User Agent was: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 Firefox/3.6

System Information

Trac 0.11.5
Python 2.6.4 (r264:75706, Dec 7 2009, 18:45:15)
[GCC 4.4.1]
setuptools 0.6c9
SQLite 3.6.16
pysqlite 2.4.1
Genshi 0.5.1
Pygments 1.0
jQuery: 1.3.2

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 444, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/dist-packages/trac/web/main.py", line 205, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.6/dist-packages/trac/admin/web_ui.py", line 114, in process_request
    path_info)
  File "build/bdist.linux-i686/egg/acct_mgr/admin.py", line 117, in render_admin_panel
    return self._do_users(req)
  File "build/bdist.linux-i686/egg/acct_mgr/admin.py", line 200, in _do_users
    self.account_manager.delete_user(account)
  File "build/bdist.linux-i686/egg/acct_mgr/api.py", line 177, in delete_user
    self._notify('deleted', user)
  File "build/bdist.linux-i686/egg/acct_mgr/api.py", line 253, in _notify
    getattr(l, func)(*args)
  File "build/bdist.linux-i686/egg/acct_mgr/notification.py", line 51, in user_deleted
    notifier.notify(username, 'Deleted User')
  File "build/bdist.linux-i686/egg/acct_mgr/notification.py", line 90, in notify
    NotifyEmail.notify(self, username, subject)
  File "/usr/lib/python2.6/dist-packages/trac/notification.py", line 241, in notify
    Notify.notify(self, resid)
  File "/usr/lib/python2.6/dist-packages/trac/notification.py", line 135, in notify
    self.send(torcpts, ccrcpts)
  File "build/bdist.linux-i686/egg/acct_mgr/notification.py", line 164, in send
    NotificationSystem(self.env).send_email(msg['From'], recipients,
AttributeError: 'NotificationSystem' object has no attribute 'send_email'

Attachments (0)

Change History (1)

comment:1 by Remy Blank, 15 years ago

Resolution: cantfix
Status: newclosed

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) to the specified user.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.