from forum.actions import QuestionViewAction
from forum.http_responses import HttpResponseUnauthorized
from forum.feed import RssQuestionFeed, RssAnswerFeed
from forum.actions import QuestionViewAction
from forum.http_responses import HttpResponseUnauthorized
from forum.feed import RssQuestionFeed, RssAnswerFeed
settings.APP_TITLE + _(' - ')+ _('latest questions'),
settings.APP_DESCRIPTION)(request)
settings.APP_TITLE + _(' - ')+ _('latest questions'),
settings.APP_DESCRIPTION)(request)
- req_params = "&".join(["%s=%s" % (k, v) for k, v in request.GET.items() if not k in (_('page'), _('pagesize'), _('sort'))])
+ req_params = "&".join(generate_uri(request.GET, (_('page'), _('pagesize'), _('sort'))))
return pagination.paginated(request, ('questions', paginator_context or QuestionListPaginatorContext()), {
"questions" : questions.distinct(),
return pagination.paginated(request, ('questions', paginator_context or QuestionListPaginatorContext()), {
"questions" : questions.distinct(),
if request.method == "GET":
stag = request.GET.get("q", "").strip()
if stag:
if request.method == "GET":
stag = request.GET.get("q", "").strip()
if stag:
return pagination.paginated(request, ('tags', TagPaginatorContext()), {
"tags" : tags,
return pagination.paginated(request, ('tags', TagPaginatorContext()), {
"tags" : tags,