Opened 14 years ago

#57 new defect

AttributeError: 'AccountChangeNotification' object has no attribute 'smtp_server'

Reported by: uriel Owned by: Gabor Hudiczius
Priority: normal Milestone:
Component: rTWi Version:
Severity: major Keywords:
Cc:

Description

How to Reproduce

While doing a POST operation on /register, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'19735c6d0e568dd84302212a',
 'action': u'create',
 'email': u'uriel.carrasquilla@mail.mcgill.ca',
 'name': u'uriel',
 'password': u'concha08',
 'password_confirm': u'concha08',
 'user': u'uriel'}

User agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.10) Gecko/20100914 Firefox/3.6.10

System Information

System information not available

Enabled Plugins

Plugin information not available

Python Traceback

Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "/usr/lib/python2.6/site-packages/trac/web/main.py", line 235, in dispatch
    resp = chosen_handler.process_request(req)
  File "/usr/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r7163-py2.6.egg/acct_mgr/web_ui.py", line 415, in process_request
    _create_user(req, self.env)
  File "/usr/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r7163-py2.6.egg/acct_mgr/web_ui.py", line 85, in _create_user
    mgr.set_password(user, password)
  File "/usr/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r7163-py2.6.egg/acct_mgr/api.py", line 129, in set_password
    self._notify('created', user, password)
  File "/usr/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r7163-py2.6.egg/acct_mgr/api.py", line 238, in _notify
    getattr(l, func)(*args)
  File "/usr/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r7163-py2.6.egg/acct_mgr/notification.py", line 41, in user_created
    notifier.notify(username, 'New user registration')
  File "/usr/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r7163-py2.6.egg/acct_mgr/notification.py", line 79, in notify
    NotifyEmail.notify(self, username, subject)
  File "/usr/lib/python2.6/site-packages/trac/notification.py", line 324, in notify
    Notify.notify(self, resid)
  File "/usr/lib/python2.6/site-packages/trac/notification.py", line 226, in notify
    self.send(torcpts, ccrcpts)
  File "/usr/lib/python2.6/site-packages/TracAccountManager-0.2.1dev_r7163-py2.6.egg/acct_mgr/notification.py", line 149, in send
    % (self.smtp_server, self.smtp_port, recipients))
AttributeError: 'AccountChangeNotification' object has no attribute 'smtp_server'

Change History (0)

Note: See TracTickets for help on using tickets.