I'm seeing something similar. I'm using the Three20 iPhone app framework and its URLRequest object formulates post requests like this:
%> po [[NSString alloc]initWithData:[request httpBody]encoding:4] --3i2ndDfv2rTHiSisAbouNdArYfORhtTPEefj3q2f --3i2ndDfv2rTHiSisAbouNdArYfORhtTPEefj3q2f Content-Disposition: form-data; name="creation_date" 2010-04-05 18:54:51 --3i2ndDfv2rTHiSisAbouNdArYfORhtTPEefj3q2f-- that extra blank section results in a parameter tuple of (None,"") which freaks out TG and produces an error along the lines of "Parameter name must be string". After hacking Three20's request object, the problem is gone but TG ought to be a little more forgiving I think. On Apr 5, 2010, at 9:16 PM, Forteresce wrote: > I'm new to python and he turbogears framework. I get a 500 - Internal > Server Error whenever any of my urls has extra parameters. I have > tried reading a lot about it and people have sugested to use > 'tg.strict_parameters = False' but I cannott seem to get that working. > I'm using Turbogears 2.0. Any help is appreciated. > > Stack Trace: > ------------------ > > Error - <type 'exceptions.TypeError'>: about() got an unexpected > keyword argument 'type' > URL: http://myweb.com/about?type=hi > File '/home/forteresce/webapps/turbocontent/lib/python2.5/ > WebError-0.10.1-py2.5.egg/weberror/errormiddleware.py', line 162 in > __call__ > app_iter = self.application(environ, sr_checker) > File '/home/forteresce/webapps/turbocontent/lib/python2.5/ > TurboGears2-2.0.3-py2.5.egg/tg/configuration.py', line 655 in wrapper > return app(environ, start_response) > File '/home/forteresce/webapps/turbocontent/lib/python2.5/ > TurboGears2-2.0.3-py2.5.egg/tg/configuration.py', line 555 in remover > return app(environ, start_response) > File '/home/forteresce/webapps/turbocontent/lib/python2.5/ > repoze.tm2-1.0a4-py2.5.egg/repoze/tm/__init__.py', line 19 in __call__ > result = self.application(environ, save_status_and_headers) > File '/home/forteresce/webapps/turbocontent/lib/python2.5/ > ToscaWidgets-0.9.7.2-py2.5.egg/tw/core/middleware.py', line 36 in > __call__ > return self.wsgi_app(environ, start_response) > File '/home/forteresce/webapps/turbocontent/lib/python2.5/ > ToscaWidgets-0.9.7.2-py2.5.egg/tw/core/middleware.py', line 59 in > wsgi_app > resp = req.get_response(self.application) > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1325 in > get_response > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1293 in > call_application > File '/home/forteresce/webapps/turbocontent/lib/python2.5/ > ToscaWidgets-0.9.7.2-py2.5.egg/tw/core/resource_injector.py', line 67 > in _injector > resp = req.get_response(app) > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1325 in > get_response > File 'build/bdist.linux-i686/egg/webob/__init__.py', line 1293 in > call_application > File '/home/forteresce/webapps/turbocontent/lib/python2.5/Beaker-1.3- > py2.5.egg/beaker/middleware.py', line 81 in __call__ > return self.app(environ, start_response) > File '/home/forteresce/webapps/turbocontent/lib/python2.5/Beaker-1.3- > py2.5.egg/beaker/middleware.py', line 160 in __call__ > return self.wrap_app(environ, session_start_response) > File '/home/forteresce/webapps/turbocontent/lib/python2.5/ > Routes-1.10.3-py2.5.egg/routes/middleware.py', line 130 in __call__ > response = self.app(environ, start_response) > File '/home/forteresce/webapps/turbocontent/lib/python2.5/Pylons-0.9.7- > py2.5.egg/pylons/wsgiapp.py', line 125 in __call__ > response = self.dispatch(controller, environ, start_response) > ....... > ..... > ... > .. > > -- > 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. > -- 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.

