I have a strong preference for aligning all parameters in a function call.
authorChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 5 Jun 2011 20:41:08 +0000 (15:41 -0500)
committerChristopher Allan Webber <cwebber@dustycloud.org>
Sun, 5 Jun 2011 20:41:08 +0000 (15:41 -0500)
mediagoblin/auth/views.py
mediagoblin/edit/views.py
mediagoblin/submit/views.py
mediagoblin/user_pages/views.py
mediagoblin/views.py

index 36d23e53c12f75f393ab59cd4b35cce637227a90..94a622258bb72d1225c13d0da856bd43656b30d6 100644 (file)
@@ -56,13 +56,15 @@ def register(request):
 
             return redirect(request, "mediagoblin.auth.register_success")
 
-    return render_to_response(request,
+    return render_to_response(
+        request,
         'mediagoblin/auth/register.html',
         {'register_form': register_form})
 
 
 def register_success(request):
-    return render_to_response(request,
+    return render_to_response(
+        request,
         'mediagoblin/auth/register_success.html', {})
 
 
@@ -96,7 +98,8 @@ def login(request):
             auth_lib.fake_login_attempt()
             login_failed = True
 
-    return render_to_response(request,
+    return render_to_response(
+        request,
         'mediagoblin/auth/login.html',
         {'login_form': login_form,
          'next': request.GET.get('next') or request.POST.get('next'),
@@ -132,7 +135,8 @@ def verify_email(request):
     else:
         verification_successful = False
         
-    return render_to_response(request,
+    return render_to_response(
+        request,
         'mediagoblin/auth/verify_email.html',
         {'user': user,
          'verification_successful': verification_successful})
@@ -144,8 +148,8 @@ def verify_email_notice(request):
     When the user tries to do some action that requires their account
     to be verified beforehand, this view is called upon!
     """
-    return render_to_response(request,
-        'mediagoblin/auth/verification_needed.html', {})
+    return render_to_response(
+        request, 'mediagoblin/auth/verification_needed.html', {})
 
 
 def resend_activation(request):
@@ -164,5 +168,5 @@ def resend_activation(request):
 
 
 def resend_activation_success(request):
-    return render_to_response(request,
-        'mediagoblin/auth/resent_verification_email.html', {})
+    return render_to_response(
+        request, 'mediagoblin/auth/resent_verification_email.html', {})
index 04b735677f339b8601716475af6ed5722a3e206a..c5f0f435b1ebd281d1ba1a3a19711cf08d102fcf 100644 (file)
@@ -54,7 +54,8 @@ def edit_media(request, media):
             return redirect(request, "mediagoblin.user_pages.media_home",
                 user=media.uploader()['username'], media=media['slug'])
 
-    return render_to_response(request,
+    return render_to_response(
+        request,
         'mediagoblin/edit/edit.html',
         {'media': media,
          'form': form})
index d4ecc75a84498dd77a168a1421d544c83994681f..b409b64d24e1eabe305acab76e868acdd0f612ab 100644 (file)
@@ -77,11 +77,12 @@ def submit_start(request):
 
             return redirect(request, "mediagoblin.submit.success")
 
-    return render_to_response(request,
+    return render_to_response(
+        request,
         'mediagoblin/submit/start.html',
         {'submit_form': submit_form})
 
 
 def submit_success(request):
-    return render_to_response(request,
-        'mediagoblin/submit/success.html', {})
+    return render_to_response(
+        request, 'mediagoblin/submit/success.html', {})
index e2fbcc80791face9194d1ec324bd65dae68fe0bc..323c3e548dab3ed17fef16cb18a56db985235485 100644 (file)
@@ -42,7 +42,8 @@ def user_home(request, page):
     if media_entries == None:
         return exc.HTTPNotFound()
     
-    return render_to_response(request,
+    return render_to_response(
+        request,
         'mediagoblin/user_pages/user.html',
         {'user': user,
          'media_entries': media_entries,
@@ -52,7 +53,8 @@ def user_home(request, page):
 @get_user_media_entry
 def media_home(request, media):
     """'Homepage' of a MediaEntry()"""
-    return render_to_response(request,
+    return render_to_response(
+        request,
         'mediagoblin/user_pages/media.html',
         {'media': media})
 
index 22673d596127937ea6bd3c00439ed3964629d032..3bff397496360f4c9865fa347056087dbdd9efea 100644 (file)
@@ -21,6 +21,7 @@ def root_view(request):
     media_entries = request.db.MediaEntry.find(
         {u'state': u'processed'}).sort('created', DESCENDING)
     
-    return render_to_response(request,
+    return render_to_response(
+        request,
         'mediagoblin/root.html',
         {'media_entries': media_entries})