Thanks to Chris for help provided on my dummy issue.
I wlaked through but now i face a problem taht seems to be a webob's
one ...
My app use TurboGears and when handling a request, i get the following
traceback :
Exception happened during processing of request from ('192.168.XXX.X',
YYYYY)
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.7/paste/httpserver.py", line 1068,
in process_request_in_thread
self.finish_request(request, client_address)
File "/usr/lib/python2.7/SocketServer.py", line 323, in
finish_request
self.RequestHandlerClass(request, client_address, self)
File "/usr/lib/python2.7/SocketServer.py", line 639, in __init__
self.handle()
File "/usr/lib/pymodules/python2.7/paste/httpserver.py", line 442,
in handle
BaseHTTPRequestHandler.handle(self)
File "/usr/lib/python2.7/BaseHTTPServer.py", line 343, in handle
self.handle_one_request()
File "/usr/lib/pymodules/python2.7/paste/httpserver.py", line 437,
in handle_one_request
self.wsgi_execute()
File "/usr/lib/pymodules/python2.7/paste/httpserver.py", line 287,
in wsgi_execute
self.wsgi_start_response)
File "/usr/lib/pymodules/python2.7/paste/cascade.py", line 130, in
__call__
return self.apps[-1](environ, start_response)
File "/usr/lib/pymodules/python2.7/paste/registry.py", line 379, in
__call__
app_iter = self.application(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/Pylons-1.0-py2.7.egg/
pylons/middleware.py", line 163, in __call__
self.app, new_environ, catch_exc_info=True)
File "/usr/local/lib/python2.7/dist-packages/Pylons-1.0-py2.7.egg/
pylons/util.py", line 48, in call_wsgi_application
app_iter = application(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/WebError-0.10.3-
py2.7.egg/weberror/errormiddleware.py", line 156, in __call__
return self.application(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/TurboGears2-2.1.3-
py2.7.egg/tg/configuration.py", line 825, in remover
return app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/repoze.tm2-1.0b2-
py2.7.egg/repoze/tm/__init__.py", line 24, in __call__
result = self.application(environ, save_status_and_headers)
File "/usr/local/lib/python2.7/dist-packages/repoze.who-1.0.19-
py2.7.egg/repoze/who/middleware.py", line 107, in __call__
app_iter = app(environ, wrapper.wrap_start_response)
File "/usr/local/lib/python2.7/dist-packages/ToscaWidgets-0.9.12-
py2.7.egg/tw/core/middleware.py", line 46, in __call__
return self.wsgi_app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/ToscaWidgets-0.9.12-
py2.7.egg/tw/core/middleware.py", line 72, in wsgi_app
resp = req.get_response(self.application)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b2-py2.7.egg/
webob/request.py", line 1149, in get_response
application, catch_exc_info=False)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b2-py2.7.egg/
webob/request.py", line 1118, in call_application
app_iter = application(self.environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/ToscaWidgets-0.9.12-
py2.7.egg/tw/core/resource_injector.py", line 70, in _injector
resp = req.get_response(app)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b2-py2.7.egg/
webob/request.py", line 1149, in get_response
application, catch_exc_info=False)
File "/usr/local/lib/python2.7/dist-packages/WebOb-1.2b2-py2.7.egg/
webob/request.py", line 1118, in call_application
app_iter = application(self.environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/Beaker-1.6.1-py2.7.egg/
beaker/middleware.py", line 73, in __call__
return self.app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/Beaker-1.6.1-py2.7.egg/
beaker/middleware.py", line 155, in __call__
return self.wrap_app(environ, session_start_response)
File "/usr/local/lib/python2.7/dist-packages/Routes-1.12.3-py2.7.egg/
routes/middleware.py", line 131, in __call__
response = self.app(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/Pylons-1.0-py2.7.egg/
pylons/wsgiapp.py", line 107, in __call__
response = self.dispatch(controller, environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/Pylons-1.0-py2.7.egg/
pylons/wsgiapp.py", line 312, in dispatch
return controller(environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/pyf.services-2.0.2-
py2.7.egg/pyf/services/lib/base.py", line 32, in __call__
return TGController.__call__(self, environ, start_response)
File "/usr/local/lib/python2.7/dist-packages/Pylons-1.0-py2.7.egg/
pylons/controllers/core.py", line 211, in __call__
response = self._dispatch_call()
File "/usr/local/lib/python2.7/dist-packages/Pylons-1.0-py2.7.egg/
pylons/controllers/core.py", line 162, in _dispatch_call
response = self._inspect_call(func)
File "/usr/local/lib/python2.7/dist-packages/Pylons-1.0-py2.7.egg/
pylons/controllers/core.py", line 105, in _inspect_call
result = self._perform_call(func, args)
File "/usr/local/lib/python2.7/dist-packages/TurboGears2-2.1.3-
py2.7.egg/tg/controllers/dispatcher.py", line 230, in _perform_call
setup_i18n()
File "/usr/local/lib/python2.7/dist-packages/TurboGears2-2.1.3-
py2.7.egg/tg/i18n.py", line 61, in setup_i18n
pylons.request.accept_language.best_matches()))
AttributeError: 'AcceptLanguage' object has no attribute
'best_matches'
To me, it looks like webob lacks best_matches attribute support.
Do you think it is an issue or is it an integration issue ?
Thanks for your help
Regards
I'm not sure if the latest TG has the relevant changes. If not, you'll
have to pin webob version at 1.1.1
> --
> You received this message because you are subscribed to the Google Groups "Paste Users" group.
> To post to this group, send email to paste...@googlegroups.com.
> To unsubscribe from this group, send email to paste-users...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/paste-users?hl=en.
>
On 22 nov, 10:46, Sergey Schetinin <mal...@gmail.com> wrote:
> That method had flaky semantics and was deprecated and removed in
> 1.2b1. From the changelog:
> Accept.best_matches() is gone; use list(request.accept) or
> request.accept.best_match(..) instead
>
> I'm not sure if the latest TG has the relevant changes. If not, you'll
> have to pin webob version at 1.1.1
>