Opened 4 years ago

Closed 3 years ago

#8338 closed defect (duplicate)

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

Reported by: administrator Owned by: hasienda
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords: needinfo compatibility
Cc: Trac Release: 0.11


How to Reproduce

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

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'6045e98f298434bbb236fbca',
 'add': u' Add ',
 'cat_id': u'accounts',
 'email': u'',
 'name': u'taminou',
 'panel_id': u'users',
 'password': u'tam2011',
 'password_confirm': u'tam2011',
 'path_info': None,
 'user': u'taminou2011'}

User agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv: Gecko/20101203 YFF35 Firefox/3.6.13

System Information

Trac 0.12
Genshi 0.6
Pygments 0.10
pysqlite 2.4.1
Python 2.5.2 (r252:60911, Jan 24 2010, 14:53:14)
[GCC 4.3.2]
pytz 2008c
setuptools 0.6c11
SQLite 3.5.9
Subversion 1.5.1 (r32289)
jQuery 1.4.2

Enabled Plugins

TracAccountManager 0.2.1dev-r9290

Python Traceback

Traceback (most recent call last):
  File "build/bdist.linux-x86_64/egg/trac/web/", line 513, in _dispatch_request
  File "build/bdist.linux-x86_64/egg/trac/web/", line 235, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/trac/admin/", line 116, in process_request
  File "build/bdist.linux-x86_64/egg/acct_mgr/", line 117, in render_admin_panel
    return self._do_users(req)
  File "build/bdist.linux-x86_64/egg/acct_mgr/", line 188, in _do_users
    _create_user(req, self.env, check_permissions=False)
  File "build/bdist.linux-x86_64/egg/acct_mgr/", line 71, in _create_user
    mgr.set_password(user, password)
  File "build/bdist.linux-x86_64/egg/acct_mgr/", line 144, in set_password
    self._notify('created', user, password)
  File "build/bdist.linux-x86_64/egg/acct_mgr/", line 253, in _notify
    getattr(l, func)(*args)
  File "build/bdist.linux-x86_64/egg/acct_mgr/", line 41, in user_created
    notifier.notify(username, 'New user registration')
  File "build/bdist.linux-x86_64/egg/acct_mgr/", line 90, in notify
    NotifyEmail.notify(self, username, subject)
  File "build/bdist.linux-x86_64/egg/trac/", line 324, in notify
    Notify.notify(self, resid)
  File "build/bdist.linux-x86_64/egg/trac/", line 226, in notify
    self.send(torcpts, ccrcpts)
  File "build/bdist.linux-x86_64/egg/acct_mgr/", line 160, in send
    % (self.smtp_server, self.smtp_port, recipients))
AttributeError: 'AccountChangeNotification' object has no attribute 'smtp_server'

Attachments (0)

Change History (4)

comment:1 Changed 4 years ago by anonymous

  • Component changed from SELECT A HACK to AccountManagerPlugin
  • Owner set to hasienda

comment:2 Changed 4 years ago by hasienda

  • Keywords needinfo added

Would you be so kind as to try a recent trunk version, please? I'd rather not go and investigate something in the old stable releases, what has most probably been fixed meanwhile. A positive feedback would nevertheless be encouraging to release new code soon. Thanks for taking care.

comment:3 Changed 3 years ago by hasienda

As recommended before, try a recent revision, please.

The code has changed a lot, i.e. entirely removing the relevant code, so this report does no longer apply AFAIK.

comment:4 Changed 3 years ago by hasienda

  • Keywords compatibility added
  • Resolution set to duplicate
  • Status changed from new to closed

Luckily I stumbled over #4895, so you where before r7737 while testing and this is barely a duplicate, right?

So I ask you kindly to follow-up on the original issue. Thanks

Add Comment

Modify Ticket

as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from hasienda. Next status will be 'closed'.
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.