diff options
author | Nate Case <ncase@xes-inc.com> | 2008-08-23 11:03:18 +0800 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-08-23 11:03:18 +0800 |
commit | 05d26756d7e7f254d5631a0649aeac5fd3a58ca8 (patch) | |
tree | d40b4861766912d9a15cd412f5df7b4d3bd1452d /apps/patchwork/views/patch.py | |
parent | 04767c65175f2a76127cd78649c5d92a82a39bb6 (diff) | |
download | patchwork-05d26756d7e7f254d5631a0649aeac5fd3a58ca8.tar.bz2 patchwork-05d26756d7e7f254d5631a0649aeac5fd3a58ca8.tar.xz |
In some places tabs are used instead of spaces for indentation,
even when other lines of a method are indented with spaces.
This gets rid of all tabs and uses spaces everywhere.
[Reworked to apply on newer code by Jeremy]
Signed-off-by: Nate Case <ncase@xes-inc.com>
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps/patchwork/views/patch.py')
-rw-r--r-- | apps/patchwork/views/patch.py | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/apps/patchwork/views/patch.py b/apps/patchwork/views/patch.py index c0960c1..72472ca 100644 --- a/apps/patchwork/views/patch.py +++ b/apps/patchwork/views/patch.py @@ -25,7 +25,7 @@ from patchwork.utils import get_patch_ids, set_patches, Order from patchwork.requestcontext import PatchworkRequestContext from django.shortcuts import render_to_response, get_object_or_404 from django.http import HttpResponse, HttpResponseRedirect, \ - HttpResponseForbidden + HttpResponseForbidden from django.contrib.auth.models import User from django.contrib.auth.decorators import login_required from django.contrib.auth import authenticate, login @@ -71,7 +71,7 @@ def patch(request, patch_id): bundle.save() context.add_message('Patch added to bundle "%s"' % bundle.name) - # all other actions require edit privs + # all other actions require edit privs elif not editable: return HttpResponseForbidden() @@ -81,14 +81,14 @@ def patch(request, patch_id): form.save() context.add_message('Patch updated') - elif action == 'archive': - patch.archived = True - patch.save() + elif action == 'archive': + patch.archived = True + patch.save() context.add_message('Patch archived') - elif action == 'unarchive': - patch.archived = False - patch.save() + elif action == 'unarchive': + patch.archived = False + patch.save() context.add_message('Patch un-archived') elif action == 'ack': @@ -157,13 +157,13 @@ def list(request, project_id): ps.append(patch) (errors, form) = set_patches(request.user, project, action, \ - request.POST, ps) + request.POST, ps) if errors: context['errors'] = errors elif request.user.is_authenticated() and \ - project in request.user.get_profile().maintainer_projects.all(): + project in request.user.get_profile().maintainer_projects.all(): form = MultiplePatchForm(project) patches = Patch.objects.filter(project=project).order_by(order) |