Modify

Opened 12 years ago

Closed 7 years ago

#11082 closed defect (worksforme)

TypeError: __call__() got an unexpected keyword argument 'username'

Reported by: Ryan J Ollos Owned by:
Priority: normal Component: AccountManagerPlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

Following on from #11081, this time I enabled the following set of components before starting the configuration wizard,

[components]
acct_mgr.admin.accountmanageradminpanel = enabled
acct_mgr.api.accountmanager = enabled
acct_mgr.db.sessionstore = enabled
acct_mgr.pwhash.htdigesthashmethod = enabled

I stepped through all of the pages, accepting the defaults on each page (figured they would be sane enough), until I got to step 6. I created the admin account in step 6, pressed Add and received the following error:

How to Reproduce

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

(please provide additional details here)

Request parameters:

{'__FORM_TOKEN': u'6d4d48bcf3537892b4a7e899',
 'active': u'5',
 'add': u' Add ',
 'cat_id': u'accounts',
 'panel_id': u'config',
 'password': u'abcd',
 'password_confirm': u'abcd',
 'path_info': None,
 'username': u'admin'}

User Agent was: Mozilla/5.0 (X11; Linux i686) AppleWebKit/537.22 (KHTML, like Gecko) Ubuntu Chromium/25.0.1364.160 Chrome/25.0.1364.160 Safari/537.22

System Information

Trac 0.11
Python 2.7.3 (default, Aug 1 2012, 05:16:07)
[GCC 4.6.3]
setuptools 0.6
SQLite 3.7.9
pysqlite 2.6.0
Genshi 0.6
jQuery: 1.2.3

Python Traceback

Traceback (most recent call last):
  File "/home/user/Workspace/th11081/trac-0.11/trac/web/main.py", line 423, in _dispatch_request
    dispatcher.dispatch(req)
  File "/home/user/Workspace/th11081/trac-0.11/trac/web/main.py", line 197, in dispatch
    resp = chosen_handler.process_request(req)
  File "/home/user/Workspace/th11081/trac-0.11/trac/admin/web_ui.py", line 109, in process_request
    path_info)
  File "/home/user/Workspace/trachacks.git/accountmanagerplugin/trunk/acct_mgr/admin.py", line 226, in render_admin_panel
    return self._do_config(req)
  File "/home/user/Workspace/trachacks.git/accountmanagerplugin/trunk/acct_mgr/admin.py", line 480, in _do_config
    account = self._do_add(req)
  File "/home/user/Workspace/trachacks.git/accountmanagerplugin/trunk/acct_mgr/admin.py", line 1214, in _do_add
    username=tag.b(account['username']))))
TypeError: __call__() got an unexpected keyword argument 'username'

Attachments (0)

Change History (2)

comment:1 Changed 8 years ago by Ryan J Ollos

Owner: Steffen Hoffmann deleted

comment:2 Changed 7 years ago by Ryan J Ollos

Resolution: worksforme
Status: newclosed

No longer reproducible with:

acct_mgr.admin.*= enabled
acct_mgr.api.accountmanager = enabled
acct_mgr.db.sessionstore = enabled
acct_mgr.pwhash.htdigesthashmethod = enabled

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'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.