* File "/srv/simplon/code.simplon.biz/trac/eggs/Trac-0.11.6-py2.5.egg/trac/web/main.py", line 450, in _dispatch_request Code fragment: 445. try: 446. if not env and env_error: 447. raise HTTPInternalError(env_error) 448. try: 449. dispatcher = RequestDispatcher(env) 450. dispatcher.dispatch(req) 451. except RequestDone: 452. pass 453. resp = req._response or [] 454. 455. except HTTPException, e: Local variables: Name Value after [u' except RequestDone:', u' pass', u' resp = ... before [u' try:', u' if not env and env_error:', u' raise ... dispatcher e AttributeError("'NoneType' object has no attribute 'encode'",) env env_error None exc_info (, AttributeError("'NoneType' object has ... filename '/srv/simplon/code.simplon.biz/trac/eggs/Trac-0.11.6-py2.5.egg/trac/web/mai ... frames [{'function': '_dispatch_request', 'lines_before': [u' try:', u' ... has_admin True line u' dispatcher.dispatch(req)' lineno 449 message u"AttributeError: 'NoneType' object has no attribute 'encode'" req resp [] tb tb_hide None traceback u'Traceback (most recent call last):\n File ... * File "/srv/simplon/code.simplon.biz/trac/eggs/Trac-0.11.6-py2.5.egg/trac/web/main.py", line 206, in dispatch Code fragment: 201. req.args.get('__FORM_TOKEN') != req.form_token: 202. raise HTTPBadRequest('Missing or invalid form token. ' 203. 'Do you have cookies enabled?') 204. 205. # Process the request and render the template 206. resp = chosen_handler.process_request(req) 207. if resp: 208. if len(resp) == 2: # Clearsilver 209. chrome.populate_hdf(req) 210. template, content_type = \ 211. self._post_process_request(req, *resp) Local variables: Name Value chosen_handler chrome ctype 'application/x-www-form-urlencoded' err (, AttributeError("'NoneType' object has ... handler options {} req self * File "/srv/simplon/code.simplon.biz/trac/eggs/Trac-0.11.6-py2.5.egg/trac/admin/web_ui.py", line 114, in process_request Code fragment: 109. if not provider: 110. raise HTTPNotFound(_('Unknown administration panel')) 111. 112. if hasattr(provider, 'render_admin_panel'): 113. template, data = provider.render_admin_panel(req, cat_id, panel_id, 114. path_info) 115. 116. else: # support for legacy WebAdmin panels 117. data = {} 118. cstmpl, ct = provider.process_admin_request(req, cat_id, panel_id, 119. path_info) Local variables: Name Value _panel_order cat_id u'accounts' panel_id u'users' panels [('general', 'General', 'basics', 'Basic Settings'), ('general', ... path_info None provider providers {('general', 'basics'): self * File "/srv/simplon/code.simplon.biz/trac/parts/svn-eggs/accountmanagerplugin/acct_mgr/admin.py", line 117, in render_admin_panel Code fragment: 112. 113. def render_admin_panel(self, req, cat, page, path_info): 114. if page == 'config': 115. return self._do_config(req) 116. elif page == 'users': 117. return self._do_users(req) 118. 119. def _do_config(self, req): 120. stores = StoreOrder(stores=self.account_manager.stores, 121. list=self.account_manager.password_store) 122. if req.method == 'POST': Local variables: Name Value cat u'accounts' page u'users' path_info None req self * File "/srv/simplon/code.simplon.biz/trac/parts/svn-eggs/accountmanagerplugin/acct_mgr/admin.py", line 185, in _do_users Code fragment: 180. 181. if req.method == 'POST': 182. if req.args.get('add'): 183. if create_enabled: 184. try: 185. _create_user(req, self.env, check_permissions=False) 186. except TracError, e: 187. data['registration_error'] = e.message 188. data['acctmgr'] = e.acctmgr 189. else: 190. data['registration_error'] = 'The password store does ' \ Local variables: Name Value create_enabled True data {'create_enabled': True, 'delete_enabled': True, 'listing_enabled': True, ... delete_enabled True listing_enabled True password_change_enabled True perm req self * File "/srv/simplon/code.simplon.biz/trac/parts/svn-eggs/accountmanagerplugin/acct_mgr/web_ui.py", line 71, in _create_user Code fragment: 66. if password != req.args.get('password_confirm'): 67. error.message = 'The passwords must match.' 68. raise error 69. 70. try: 71. mgr.set_password(user, password) 72. except TracError, e: 73. e.acctmge = acctmgr 74. raise e 75. 76. db = env.get_db_cnx() Local variables: Name Value acctmgr {'username': u'test', 'name': u'', 'email': u''} check_permissions False email u'' env error TracError('',) mgr name u'' password u'test' req user u'test' * File "/srv/simplon/code.simplon.biz/trac/parts/svn-eggs/accountmanagerplugin/acct_mgr/api.py", line 128, in set_password Code fragment: 123. raise TracError('The authentication backend for the user, %s, ' 124. 'does not support setting the password' % user) 125. elif not store: 126. store = self.get_supporting_store('set_password') 127. if store: 128. if store.set_password(user, password): 129. self._notify('created', user, password) 130. else: 131. self._notify('password_changed', user, password) 132. else: 133. raise TracError('None of the IPasswordStore components listed in ' Local variables: Name Value password u'test' self store user u'test' * File "/srv/simplon/code.simplon.biz/trac/parts/svn-eggs/accountmanagerplugin/acct_mgr/db.py", line 50, in set_password Code fragment: 45. """Sets the password for the user. This should create the user account 46. if it doesn't already exist. 47. Returns True if a new account was created, False if an existing account 48. was updated. 49. """ 50. hash = self.hash_method.generate_hash(user, password) 51. db = self.env.get_db_cnx() 52. cursor = db.cursor() 53. cursor.execute("UPDATE session_attribute " 54. "SET value=%s " 55. "WHERE authenticated=1 AND name='password' " Local variables: Name Value password u'test' self user u'test' * File "/srv/simplon/code.simplon.biz/trac/parts/svn-eggs/accountmanagerplugin/acct_mgr/pwhash.py", line 48, in generate_hash Code fragment: 43. implements(IPasswordHashMethod) 44. 45. realm = Option('account-manager', 'htdigest_realm') 46. 47. def generate_hash(self, user, password): 48. user,password,realm = _encode(user, password, self.realm) 49. return ':'.join([realm, htdigest(user, realm, password)]) 50. 51. def check_hash(self, user, password, hash): 52. return hash == self.generate_hash(user, password) 53. Local variables: Name Value password u'test' self user u'test' * File "/srv/simplon/code.simplon.biz/trac/parts/svn-eggs/accountmanagerplugin/acct_mgr/pwhash.py", line 56, in _encode