On Saturday 06 February 2010 12:39:04 Mikhail wrote: > Hello everyone! > I just started new project with 'paster quickstart'. This is just > empty project with authentication and authorization. > > When i open Konqueror browser and trying to login i receive this > error: > > --------------------------------------------------------------------------- >--------------------------- WebError Traceback: > ⇝ TypeError: post_login() got an unexpected keyword argument 'login' > > URL: http://127.0.0.1:8080/post_login?came_from=%2F > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > WebError-0.10.1-py2.6.egg/weberror/evalexception.py', line 431 in > respond > app_iter = self.application(environ, detect_start_response) > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > TurboGears2-2.0.3-py2.6.egg/tg/configuration.py', line 655 in wrapper > return app(environ, start_response) > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > TurboGears2-2.0.3-py2.6.egg/tg/configuration.py', line 555 in remover > return app(environ, start_response) > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > repoze.tm2-1.0a4-py2.6.egg/repoze/tm/__init__.py', line 19 in __call__ > result = self.application(environ, save_status_and_headers) > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > repoze.who-1.0.15-py2.6.egg/repoze/who/middleware.py', line 107 in > __call__ > app_iter = app(environ, wrapper.wrap_start_response) > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > ToscaWidgets-0.9.8-py2.6.egg/tw/core/middleware.py', line 43 in > __call__ > return self.wsgi_app(environ, start_response) > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > ToscaWidgets-0.9.8-py2.6.egg/tw/core/middleware.py', line 68 in > wsgi_app > resp = req.get_response(self.application) > File 'build/bdist.linux-x86_64/egg/webob/__init__.py', line 1325 in > get_response > File 'build/bdist.linux-x86_64/egg/webob/__init__.py', line 1293 in > call_application > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > ToscaWidgets-0.9.8-py2.6.egg/tw/core/resource_injector.py', line 68 in > _injector > resp = req.get_response(app) > File 'build/bdist.linux-x86_64/egg/webob/__init__.py', line 1325 in > get_response > File 'build/bdist.linux-x86_64/egg/webob/__init__.py', line 1293 in > call_application > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/Beaker-1.3- > py2.6.egg/beaker/middleware.py', line 81 in __call__ > return self.app(environ, start_response) > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/Beaker-1.3- > py2.6.egg/beaker/middleware.py', line 160 in __call__ > return self.wrap_app(environ, session_start_response) > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > Routes-1.10.3-py2.6.egg/routes/middleware.py', line 130 in __call__ > response = self.app(environ, start_response) > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > Pylons-0.9.7-py2.6.egg/pylons/wsgiapp.py', line 125 in __call__ > response = self.dispatch(controller, environ, start_response) > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > Pylons-0.9.7-py2.6.egg/pylons/wsgiapp.py', line 324 in dispatch > return controller(environ, start_response) > File '/home/uni/projects/tg2env/testo/testo/lib/base.py', line 32 in > __call__ > return TGController.__call__(self, environ, start_response) > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > Pylons-0.9.7-py2.6.egg/pylons/controllers/core.py', line 221 in > __call__ > response = self._dispatch_call() > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > Pylons-0.9.7-py2.6.egg/pylons/controllers/core.py', line 172 in > _dispatch_call > response = self._inspect_call(func) > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > Pylons-0.9.7-py2.6.egg/pylons/controllers/core.py', line 107 in > _inspect_call > result = self._perform_call(func, args) > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > TurboGears2-2.0.3-py2.6.egg/tg/controllers.py', line 857 in > _perform_call > self, controller, params, remainder=remainder) > File '/home/uni/projects/tg2env/lib/python2.6/site-packages/ > TurboGears2-2.0.3-py2.6.egg/tg/controllers.py', line 172 in > _perform_call > output = controller(*remainder, **dict(params)) > TypeError: post_login() got an unexpected keyword argument 'login' > --------------------------------------------------------------------------- >--------------------------- > > When using Firefox or Chrome everything works fine > I'm using tg.devtools 2.0.2 on virtualenv
Whyever it does so, it seems that Konqueror passes another parameter to you post_login action. Just declary a catch-all **kwargs-argument. Diez -- You received this message because you are subscribed to the Google Groups "TurboGears" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/turbogears?hl=en.

