i think it has something to do with unicode or flup... i cant fig it out....
thanks


A problem occurred in a Python script. Here is the sequence of function
calls leading up to the error, in the order they occurred.
 /home/mark/work/common/flup/server/fcgi_base.py in
run(self=<flup.server.fcgi_base.Request object at 0x93dfd8c>)
  556         """Runs the handler, flushes the streams, and ends the
request."""
  557         try:
  558             protocolStatus, appStatus = self.server.handler(self)
  559         except:
  560             traceback.print_exc(file=self.stderr)
protocolStatus undefined, appStatus undefined, self =
<flup.server.fcgi_base.Request object at 0x93dfd8c>, self.server =
<flup.server.fcgi.WSGIServer object at 0x93cbe4c>, self.server.handler =
<bound method WSGIServer.handler of <flup.server.fcgi.WSGIServer object at
0x93cbe4c>>
 /home/mark/work/common/flup/server/fcgi_base.py in
handler(self=<flup.server.fcgi.WSGIServer object at 0x93cbe4c>,
req=<flup.server.fcgi_base.Request object at 0x93dfd8c>)
 1114         try:
 1115             try:
 1116                 result = self.application(environ, start_response)
 1117                 try:
 1118                     for data in result:
result = None, self = <flup.server.fcgi.WSGIServer object at 0x93cbe4c>,
self.application = <beaker.middleware.SessionMiddleware object at
0x932c4ac>, environ = {'CONTENT_LENGTH': '', 'CONTENT_TYPE': '',
'HTTP_ACCEPT':
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE':
'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE':
'bt=b140314b4842506f6b2819649dddea34b1d32a7egAJ9c...waWNxGVgAAAAAVRNudW1iZXJfdXNlcm1lc3NhZ2VzcRpLAHUu',
'HTTP_HOST': 'XXX.com', 'HTTP_KEEP_ALIVE': '300', ...}, start_response =
<function start_response at 0x93e11ec>
 /usr/lib/python2.5/site-packages/Beaker-0.9.5-py2.5.egg/beaker/middleware.py
in __call__(self=<beaker.middleware.SessionMiddleware object at 0x932c4ac>,
environ={'CONTENT_LENGTH': '', 'CONTENT_TYPE': '', 'HTTP_ACCEPT':
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE':
'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE':
'bt=b140314b4842506f6b2819649dddea34b1d32a7egAJ9c...waWNxGVgAAAAAVRNudW1iZXJfdXNlcm1lc3NhZ2VzcRpLAHUu',
'HTTP_HOST': 'XXX.com', 'HTTP_KEEP_ALIVE': '300', ...},
start_response=<function start_response at 0x93e11ec>)
  146                         headers.append(('Set-cookie', cookie))
  147             return start_response(status, headers, exc_info)
  148         return self.wrap_app(environ, session_start_response)
  149
  150     def _get_session(self):
self = <beaker.middleware.SessionMiddleware object at 0x932c4ac>,
self.wrap_app = <function wsgi at 0x93cf1ec>, environ = {'CONTENT_LENGTH':
'', 'CONTENT_TYPE': '', 'HTTP_ACCEPT':
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE':
'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE':
'bt=b140314b4842506f6b2819649dddea34b1d32a7egAJ9c...waWNxGVgAAAAAVRNudW1iZXJfdXNlcm1lc3NhZ2VzcRpLAHUu',
'HTTP_HOST': 'XXX.com', 'HTTP_KEEP_ALIVE': '300', ...},
session_start_response = <function session_start_response at 0x93e1224>
 /home/mark/work/common/web/application.py in wsgi(env={'CONTENT_LENGTH':
'', 'CONTENT_TYPE': '', 'HTTP_ACCEPT':
'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.7',
'HTTP_ACCEPT_ENCODING': 'gzip,deflate', 'HTTP_ACCEPT_LANGUAGE':
'en-us,en;q=0.5', 'HTTP_CONNECTION': 'keep-alive', 'HTTP_COOKIE':
'bt=b140314b4842506f6b2819649dddea34b1d32a7egAJ9c...waWNxGVgAAAAAVRNudW1iZXJfdXNlcm1lc3NhZ2VzcRpLAHUu',
'HTTP_HOST': 'XXX.com', 'HTTP_KEEP_ALIVE': '300', ...}, start_resp=<function
session_start_response at 0x93e1224>)
  221
  222             status, headers = web.ctx.status, web.ctx.headers
  223             start_resp(status, headers)
  224
  225             #@@@
start_resp = <function session_start_response at 0x93e1224>, status = u'200
OK', headers = [('Content-Type', 'text/html; charset=utf-8'), ('Set-cookie',
' bt=b012b93b88214a05598809c505b460ca86c285ebgAJ9...om; expires=Mon,
18-Jan-2038 19:14:07 GMT; Path=/')]
 /usr/lib/python2.5/site-packages/Beaker-0.9.5-py2.5.egg/beaker/middleware.py
in session_start_response(status=u'200 OK', headers=[('Content-Type',
'text/html; charset=utf-8'), ('Set-cookie', '
bt=b012b93b88214a05598809c505b460ca86c285ebgAJ9...om; expires=Mon,
18-Jan-2038 19:14:07 GMT; Path=/')], exc_info=None)
  145                     if cookie:
  146                         headers.append(('Set-cookie', cookie))
  147             return start_response(status, headers, exc_info)
  148         return self.wrap_app(environ, session_start_response)
  149
start_response = <function start_response at 0x93e11ec>, status = u'200 OK',
headers = [('Content-Type', 'text/html; charset=utf-8'), ('Set-cookie', '
bt=b012b93b88214a05598809c505b460ca86c285ebgAJ9...om; expires=Mon,
18-Jan-2038 19:14:07 GMT; Path=/')], exc_info = None
 /home/mark/work/common/flup/server/fcgi_base.py in
start_response(status=u'200 OK', response_headers=[('Content-Type',
'text/html; charset=utf-8'), ('Set-cookie', '
bt=b012b93b88214a05598809c505b460ca86c285ebgAJ9...om; expires=Mon,
18-Jan-2038 19:14:07 GMT; Path=/')], exc_info=None)
 1097                 assert not headers_set, 'Headers already set!'
 1098
 1099             assert type(status) is str, 'Status must be a string'
 1100             assert len(status) >= 4, 'Status must be at least 4
characters'
 1101             assert int(status[:3]), 'Status must begin with 3-digit
code'
builtin type = <type 'type'>, status = u'200 OK', builtin str = <type 'str'>

<type 'exceptions.AssertionError'>: Status must be a string

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" 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/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to