Hi @ll,

after a fresh installation and quickstart of TG version 2.2.2 on Windows, 
the app starts as expected and shows the initial screen. 

If i add the line "print request.body" (see example code)

    @expose('falter.templates.index')
    def index(self):
        """Handle the front-page."""
        print request.body
        return dict(page='index')

i get a traceback when requesting the index page:

TypeError: an integer is required

URL: http://127.0.0.1:8080/
File 
'C:\\tg2env\\lib\\site-packages\\weberror-0.10.3-py2.6.egg\\weberror\\evalexception.py',
 
line 438 in respond
  return_iter = list(app_iter)
File 
'C:\\tg2env\\lib\\site-packages\\repoze.tm2-2.0-py2.6.egg\\repoze\\tm\\__init__.py',
 
line 58 in __call__
  reraise(type_, value, tb)
File 
'C:\\tg2env\\lib\\site-packages\\repoze.tm2-2.0-py2.6.egg\\repoze\\tm\\__init__.py',
 
line 51 in __call__
  for chunk in self.application(environ, save_status_and_headers):
File 
'C:\\tg2env\\lib\\site-packages\\repoze.who-2.2-py2.6.egg\\repoze\\who\\middleware.py',
 
line 87 in __call__
  app_iter = app(environ, wrapper.wrap_start_response)
File 
'C:\\tg2env\\lib\\site-packages\\tw2.core-2.2.2-py2.6.egg\\tw2\\core\\middleware.py',
 
line 204 in __call__
  resp = req.get_response(self.app, catch_exc_info=True)
File 'build\\bdist.win32\\egg\\webob\\request.py', line 1082 in get_response
File 'build\\bdist.win32\\egg\\webob\\request.py', line 1055 in 
call_application
File 
'C:\\tg2env\\lib\\site-packages\\beaker-1.6.3-py2.6.egg\\beaker\\middleware.py',
 
line 73 in __call__
  return self.app(environ, start_response)
File 
'C:\\tg2env\\lib\\site-packages\\beaker-1.6.3-py2.6.egg\\beaker\\middleware.py',
 
line 155 in __call__
  return self.wrap_app(environ, session_start_response)
File 
'C:\\tg2env\\lib\\site-packages\\routes-1.13-py2.6.egg\\routes\\middleware.py', 
line 131 in __call__
  response = self.app(environ, start_response)
File 
'C:\\tg2env\\lib\\site-packages\\pylons-1.0-py2.6.egg\\pylons\\wsgiapp.py', 
line 107 in __call__
  response = self.dispatch(controller, environ, start_response)
File 
'C:\\tg2env\\lib\\site-packages\\pylons-1.0-py2.6.egg\\pylons\\wsgiapp.py', 
line 312 in dispatch
  return controller(environ, start_response)
File 'C:\\tg2env\\falter\\falter\\lib\\base.py', line 31 in __call__
  return TGController.__call__(self, environ, start_response)
File 
'C:\\tg2env\\lib\\site-packages\\pylons-1.0-py2.6.egg\\pylons\\controllers\\core.py',
 
line 211 in __call__
  response = self._dispatch_call()
File 
'C:\\tg2env\\lib\\site-packages\\pylons-1.0-py2.6.egg\\pylons\\controllers\\core.py',
 
line 162 in _dispatch_call
  response = self._inspect_call(func)
File 
'C:\\tg2env\\lib\\site-packages\\pylons-1.0-py2.6.egg\\pylons\\controllers\\core.py',
 
line 105 in _inspect_call
  result = self._perform_call(func, args)
File 
'C:\\tg2env\\lib\\site-packages\\turbogears2-2.2.2-py2.6.egg\\tg\\controllers\\dispatcher.py',
 
line 124 in _perform_call
  r = self._call(func, params, remainder=remainder)
File 
'C:\\tg2env\\lib\\site-packages\\turbogears2-2.2.2-py2.6.egg\\tg\\controllers\\decoratedcontroller.py',
 
line 133 in _call
  output = controller_callable(*remainder, **dict(params))
File 'C:\\tg2env\\falter\\falter\\controllers\\root.py', line 44 in index
  print request.body
File 
'C:\\tg2env\\lib\\site-packages\\paste-1.7.5.1-py2.6.egg\\paste\\registry.py', 
line 137 in __getattr__
  return getattr(self._current_obj(), attr)
File 'build\\bdist.win32\\egg\\webob\\request.py', line 495 in _body__get
TypeError: an integer is required

the error comes from the call "r = 
self.body_file.read(self.content_length)" because of self.content_length is 
"None" in this case.

I dont know when this behaviour has changed, some months ago it worked just 
fine. On my Linux system i do not have this problem but i absolutly need a 
development environment on windows.
has someone some hints what i can do?

THX a lot
Kind regards 
Mirco

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/turbogears.
For more options, visit https://groups.google.com/d/optout.

Reply via email to