diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-06-16 13:47:03 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2011-06-16 13:53:32 -0400 |
commit | 7aa9acd1b39b4ab2b1b10bfc060a3deff72c274d (patch) | |
tree | 3fc60802246308f9bd6382b6a89a76ca4dfbcafe | |
parent | c5f55651db7d002523145679677f30a4c1e3162c (diff) | |
download | askbot-7aa9acd1b39b4ab2b1b10bfc060a3deff72c274d.tar.gz askbot-7aa9acd1b39b4ab2b1b10bfc060a3deff72c274d.tar.bz2 askbot-7aa9acd1b39b4ab2b1b10bfc060a3deff72c274d.zip |
fixed unicode bug in get_request_info debugging function
-rw-r--r-- | askbot/__init__.py | 2 | ||||
-rw-r--r-- | askbot/utils/http.py | 5 |
2 files changed, 5 insertions, 2 deletions
diff --git a/askbot/__init__.py b/askbot/__init__.py index 8ab5079e..a54b83c1 100644 --- a/askbot/__init__.py +++ b/askbot/__init__.py @@ -9,7 +9,7 @@ import smtplib import sys import logging -VERSION = (0, 6, 97) +VERSION = (0, 6, 98) #necessary for interoperability of django and coffin try: diff --git a/askbot/utils/http.py b/askbot/utils/http.py index 8a3ccd22..2c45b248 100644 --- a/askbot/utils/http.py +++ b/askbot/utils/http.py @@ -41,5 +41,8 @@ def get_request_info(request): data = hide_passwords(copy(data)) info += 'data: %s\n' % str(data) info += 'host: %s\n' % request.get_host() - info += 'user: %s\n' % request.user + if request.user.is_authenticated(): + info += 'user ID: %d\n' % request.user.id + else: + info += 'user is anonymous\n' return info |