summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2010-09-02 18:51:20 +0800
committerJeremy Kerr <jk@ozlabs.org>2010-09-02 19:51:14 +0800
commitac8978a5fcb372d7480798065a13dbef71fa8996 (patch)
tree5cc774f22dc0c7f7bd89c416d4e2cf998a5f2013 /apps
parent73960c4331e70da50b65ac753558578ada03d9ce (diff)
downloadpatchwork-ac8978a5fcb372d7480798065a13dbef71fa8996.tar.bz2
patchwork-ac8978a5fcb372d7480798065a13dbef71fa8996.tar.xz
views/patch: remove unused code
The number of times I've edited this code and wondered why nothing changes... Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'apps')
-rw-r--r--apps/patchwork/views/patch.py52
1 files changed, 0 insertions, 52 deletions
diff --git a/apps/patchwork/views/patch.py b/apps/patchwork/views/patch.py
index 49843eb..3dac149 100644
--- a/apps/patchwork/views/patch.py
+++ b/apps/patchwork/views/patch.py
@@ -131,55 +131,3 @@ def list(request, project_id):
context = generic_list(request, project, 'patchwork.views.patch.list',
view_args = {'project_id': project.linkname})
return render_to_response('patchwork/list.html', context)
-
- context = PatchworkRequestContext(request,
- list_view = 'patchwork.views.patch.list',
- list_view_params = {'project_id': project_id})
- order = get_order(request)
- project = get_object_or_404(Project, linkname=project_id)
- context.project = project
-
- form = None
- errors = []
-
- if request.method == 'POST':
- action = request.POST.get('action', None)
- if action:
- action = action.lower()
-
- # special case: the user may have hit enter in the 'create bundle'
- # text field, so if non-empty, assume the create action:
- if request.POST.get('bundle_name', False):
- action = 'create'
-
- ps = []
- for patch_id in get_patch_ids(request.POST):
- try:
- patch = Patch.objects.get(id = patch_id)
- except Patch.DoesNotExist:
- pass
- ps.append(patch)
-
- (errors, form) = set_patches(request.user, project, action, \
- request.POST, ps)
- if errors:
- context['errors'] = errors
-
-
- elif request.user.is_authenticated() and \
- project in request.user.get_profile().maintainer_projects.all():
- form = MultiplePatchForm(project)
-
- patches = Patch.objects.filter(project=project).order_by(order)
- patches = context.filters.apply(patches)
-
- paginator = Paginator(request, patches)
-
- context.update({
- 'page': paginator.current_page,
- 'patchform': form,
- 'project': project,
- 'errors': errors,
- })
-
- return render_to_response('patchwork/list.html', context)