DjangoBB

Django based forum engine

  • You are not logged in.
  • Root
  • » Bugs
  • » Moderation view error. Global name 'topic_list' is not defined [RSS Feed]

#1 Feb. 22, 2010 23:27:46

ChehoV
From: Minsk, Belarus
Registered: 2010-02-19
Posts: 5
Reputation: +  1  -
Profile   Send e-mail  

Moderation view error. Global name 'topic_list' is not defined

NameError at /moderate/<forum_id>

global name 'topic_list' is not defined

/var/django/forum/djangobb_forum/views.py in moderate

  84. return {
  85. 'categories': Category.objects.all(),
  86. 'topic_ids': topic_ids,
  87. 'exclude_forum': forum,
  88. 'TEMPLATE': 'forum/move_topic.html'
  89. }
  90. elif 'delete_topics' in request.POST:

  91. for topic_id in topic_list:

  92. topic = get_object_or_404(Topic, pk=topic_id)
  93. topic.delete()
  94. return HttpResponseRedirect(reverse('djangobb:index'))
  95. elif 'open_topics' in request.POST:
  96. for topic_id in topic_list:
  97. open_close_topic(request, topic_id)



same in 'open_topics' and 'close_topics'

plz check it n fix

Offline

#2 Feb. 23, 2010 11:20:10

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

Moderation view error. Global name 'topic_list' is not defined

Tnx, fixed

Offline

#3 Feb. 23, 2010 12:12:37

ChehoV
From: Minsk, Belarus
Registered: 2010-02-19
Posts: 5
Reputation: +  1  -
Profile   Send e-mail  

Moderation view error. Global name 'topic_list' is not defined

slav0nic, you are welcome!

In moderation,
if you delete all topics in forum, the forum also removed.

This is correct?

I think that there should be a different usecase. Forum should be empty.

Offline

#4 Feb. 23, 2010 14:42:00

slav0nic
DjangoBB Developer
From: Ukraine
Registered: 2009-10-25
Posts: 382
Reputation: +  5  -
Profile   Send e-mail  

Moderation view error. Global name 'topic_list' is not defined

hm, this is bug, but i don't really understand as this happens)

Offline

  • Root
  • » Bugs
  • » Moderation view error. Global name 'topic_list' is not defined[RSS Feed]

Board footer

Moderator control

Powered by DjangoBB

Lo-Fi Version