Hi,

Sorry I missed the error line in my last post. Below is the complete one:

[Fri May 28 09:48:16 2010] [error] IOError: sys.stdout access restricted by
mod_wsgi
[Fri May 28 09:48:19 2010] [error] [client 127.0.1.1] mod_wsgi (pid=2823):
Exception occurred processing WSGI script
'/home/hong/hm.web/trunk/hm.web.wsgi'.
[Fri May 28 09:48:19 2010] [error] [client 127.0.1.1] Traceback (most recent
call last):
[Fri May 28 09:48:19 2010] [error] [client 127.0.1.1]   File
"/home/hong/hm.web/lib/python2.6/site-packages/Beaker-1.5.3-py2.6.egg/beaker/middleware.py",
line 152, in __call__
[Fri May 28 09:48:19 2010] [error] [client 127.0.1.1]     return
self.wrap_app(environ, session_start_response)
[Fri May 28 09:48:19 2010] [error] [client 127.0.1.1]   File
"/home/hong/hm.web/lib/python2.6/site-packages/repoze.tm2-1.0a5-py2.6.egg/repoze/tm/__init__.py",
line 23, in __call__
[Fri May 28 09:48:19 2010] [error] [client 127.0.1.1]     result =
self.application(environ, save_status_and_headers)
[Fri May 28 09:48:19 2010] [error] [client 127.0.1.1]   File
"/home/hong/hm.web/lib/python2.6/site-packages/repoze.bfg-1.3a3-py2.6.egg/repoze/bfg/router.py",
line 76, in __call__
[Fri May 28 09:48:19 2010] [error] [client 127.0.1.1]     info =
self.routes_mapper(request)
[Fri May 28 09:48:19 2010] [error] [client 127.0.1.1]   File
"/home/hong/hm.web/lib/python2.6/site-packages/repoze.bfg-1.3a3-py2.6.egg/repoze/bfg/urldispatch.py",
line 54, in __call__
[Fri May 28 09:48:19 2010] [error] [client 127.0.1.1]     if preds and not
all((p(None, request) for p in preds)):
[Fri May 28 09:48:19 2010] [error] [client 127.0.1.1]   File
"/home/hong/hm.web/lib/python2.6/site-packages/repoze.bfg-1.3a3-py2.6.egg/repoze/bfg/urldispatch.py",
line 54, in <genexpr>
[Fri May 28 09:48:19 2010] [error] [client 127.0.1.1]     if preds and not
all((p(None, request) for p in preds)):
[Fri May 28 09:48:19 2010] [error] [client 127.0.1.1]   File
"/home/hong/hm.web/lib/python2.6/site-packages/repoze.bfg-1.3a3-py2.6.egg/repoze/bfg/configuration.py",
line 1680, in header_predicate
[Fri May 28 09:48:19 2010] [error] [client 127.0.1.1]     return
header_val.match(val) is not None
[Fri May 28 09:48:19 2010] [error] [client 127.0.1.1] TypeError: expected
string or buffer

It seems that somehow mod_wsgi modified the Content-Type header.

-- 
Hong Yuan

大管家网上建材超市
装修装潢建材一站式购物
http://www.homemaster.cn
_______________________________________________
Repoze-dev mailing list
Repoze-dev@lists.repoze.org
http://lists.repoze.org/listinfo/repoze-dev

Reply via email to