Move quote_reply out of the influence_detail function.
authorMatthijs Kooijman <matthijs@stdin.nl>
Fri, 31 Oct 2008 10:29:31 +0000 (11:29 +0100)
committerMatthijs Kooijman <matthijs@stdin.nl>
Fri, 31 Oct 2008 10:29:31 +0000 (11:29 +0100)
influences/views.py

index f95cfb4bef28d031b93300261bd3c51cbb044c50..cbef4fb42d166e48c279dff42328c36650a1746c 100644 (file)
@@ -150,12 +150,12 @@ def influence_list(request):
     os = Influence.objects.filter(character__player=request.user)
     return render_to_response('influences/influence_list.html', {'object_list' : os}, RequestContext(request))
 
+def quote_reply(comment):
+    return "\n".join(["> " + l for l in comment.comment.split("\n")])
+
 @login_required
 def influence_detail(request, object_id):
 
-    def quote_reply(comment):
-        return "\n".join(["> " + l for l in comment.comment.split("\n")])
-
     o = Influence.objects.get(pk=object_id)
     # Don't show other player's influences
     if (o.character.player != request.user):