diff options
author | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-04-11 17:14:25 -0400 |
---|---|---|
committer | Evgeny Fadeev <evgeny.fadeev@gmail.com> | 2010-04-11 17:14:52 -0400 |
commit | 0762b79da73cb02e1be04c2de4aaa55eda221901 (patch) | |
tree | 7e203abc410bb5e09405475941cf4eb4f94a1b29 /forum/views | |
parent | d2f242282cc00b8ab6aac94fbb30d6e55a7b87ec (diff) | |
download | askbot-0762b79da73cb02e1be04c2de4aaa55eda221901.tar.gz askbot-0762b79da73cb02e1be04c2de4aaa55eda221901.tar.bz2 askbot-0762b79da73cb02e1be04c2de4aaa55eda221901.zip |
question views merged, changed UI a bit, full text search broken
Diffstat (limited to 'forum/views')
-rw-r--r-- | forum/views/readers.py | 4 | ||||
-rwxr-xr-x | forum/views/users.py | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/forum/views/readers.py b/forum/views/readers.py index 01dfc035..7fd30a25 100644 --- a/forum/views/readers.py +++ b/forum/views/readers.py @@ -81,10 +81,10 @@ def questions(request):#a view generating listing of questions, used by 'unanswe search_state = request.session.get('search_state', SearchState()) view_log = request.session['view_log'] - print view_log + #print view_log if view_log.get_previous(1) != 'questions': if view_log.get_previous(2) != 'questions': - print 'user stepped too far, resetting search state' + #print 'user stepped too far, resetting search state' search_state.reset() if request.user.is_authenticated(): diff --git a/forum/views/users.py b/forum/views/users.py index 2356bf38..8af5a1e8 100755 --- a/forum/views/users.py +++ b/forum/views/users.py @@ -16,6 +16,7 @@ from forum.utils.html import sanitize_html from forum import auth import calendar from django.contrib.contenttypes.models import ContentType +from forum.const import USERS_PAGE_SIZE question_type = ContentType.objects.get_for_model(Question) answer_type = ContentType.objects.get_for_model(Answer) @@ -30,8 +31,6 @@ question_revision_type_id = question_revision_type.id answer_revision_type_id = answer_revision_type.id repute_type_id = repute_type.id -USERS_PAGE_SIZE = 35# refactor - move to some constants file - def users(request): is_paginated = True sortby = request.GET.get('sort', 'reputation') |