summaryrefslogtreecommitdiffstats
path: root/forum/views
diff options
context:
space:
mode:
authorEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-04-11 17:14:25 -0400
committerEvgeny Fadeev <evgeny.fadeev@gmail.com>2010-04-11 17:14:52 -0400
commit0762b79da73cb02e1be04c2de4aaa55eda221901 (patch)
tree7e203abc410bb5e09405475941cf4eb4f94a1b29 /forum/views
parentd2f242282cc00b8ab6aac94fbb30d6e55a7b87ec (diff)
downloadaskbot-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.py4
-rwxr-xr-xforum/views/users.py3
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')