Modify

Opened 6 years ago

Closed 6 years ago

#8338 closed defect (duplicate)

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

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

Description

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'ktamimou@yahoo.com',
 '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:1.9.2.13) 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/main.py", line 513, in _dispatch_request
    dispatcher.dispatch(req)
  File "build/bdist.linux-x86_64/egg/trac/web/main.py", line 235, in dispatch
    resp = chosen_handler.process_request(req)
  File "build/bdist.linux-x86_64/egg/trac/admin/web_ui.py", line 116, in process_request
    path_info)
  File "build/bdist.linux-x86_64/egg/acct_mgr/admin.py", line 117, in render_admin_panel
    return self._do_users(req)
  File "build/bdist.linux-x86_64/egg/acct_mgr/admin.py", line 188, in _do_users
    _create_user(req, self.env, check_permissions=False)
  File "build/bdist.linux-x86_64/egg/acct_mgr/web_ui.py", line 71, in _create_user
    mgr.set_password(user, password)
  File "build/bdist.linux-x86_64/egg/acct_mgr/api.py", line 144, in set_password
    self._notify('created', user, password)
  File "build/bdist.linux-x86_64/egg/acct_mgr/api.py", line 253, in _notify
    getattr(l, func)(*args)
  File "build/bdist.linux-x86_64/egg/acct_mgr/notification.py", line 41, in user_created
    notifier.notify(username, 'New user registration')
  File "build/bdist.linux-x86_64/egg/acct_mgr/notification.py", line 90, in notify
    NotifyEmail.notify(self, username, subject)
  File "build/bdist.linux-x86_64/egg/trac/notification.py", line 324, in notify
    Notify.notify(self, resid)
  File "build/bdist.linux-x86_64/egg/trac/notification.py", line 226, in notify
    self.send(torcpts, ccrcpts)
  File "build/bdist.linux-x86_64/egg/acct_mgr/notification.py", 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 6 years ago by anonymous

Component: SELECT A HACKAccountManagerPlugin
Owner: changed from anonymous to Steffen Hoffmann

comment:2 Changed 6 years ago by Steffen Hoffmann

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 6 years ago by Steffen Hoffmann

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 6 years ago by Steffen Hoffmann

Keywords: compatibility added
Resolution: duplicate
Status: newclosed

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

Modify Ticket

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