durusmail: quixote-users: wierd TypeError caused by http_request.get_header
wierd TypeError caused by http_request.get_header
2004-08-28
2004-08-28
2004-08-30
2004-08-30
2004-08-30
Setting cookies while redirecting
2004-08-31
2004-08-31
2004-08-31
2004-08-31
2004-08-31
2004-08-31
2004-09-01
2004-09-03
2004-09-06
2004-09-06
2004-09-06
2004-08-31
wierd TypeError caused by http_request.get_header
Bruce Wang
2004-08-28
I was trying to redirect back to referer in a ptl, then got a TypeError
When I change it to "request.get_header("HTTP_REFERER") ", everything is fine

Any idea?


Traceback (most recent call last):
  File "/usr/lib/python2.3/site-packages/quixote/publish.py", line
522, in process_request
  File "/usr/lib/python2.3/site-packages/quixote/publish.py", line
457, in try_publish
  File "/home/bruce/sandbox/falco/ui/results_ui.ptl", line 33, in first
    return request.redirect(request.get_header('referer'))
  File "/usr/lib/python2.3/site-packages/quixote/http_request.py",
line 181, in get_header
TypeError: unsubscriptable object


--
simple is good

reply