from django.core.urlresolvers import reverse, NoReverseMatch\r
from forum.forms import *\r
from forum.utils.html import sanitize_html\r
+from forum.modules import decorate\r
from datetime import datetime, date\r
import decorators\r
from forum.actions import EditProfileAction, FavoriteAction, BonusRepAction, SuspendAction\r
return HttpResponseRedirect(user.get_profile_url())\r
\r
\r
-@decorators.command\r
+@decorate.withfn(decorators.command)\r
def award_points(request, id):\r
if (not request.POST) and request.POST.get('points', None):\r
raise decorators.CommandException(_("Invalid request type"))\r
return dict(reputation=user.reputation)\r
\r
\r
-@decorators.command\r
+@decorate.withfn(decorators.command)\r
def suspend(request, id):\r
user = get_object_or_404(User, id=id)\r
\r