summaryrefslogtreecommitdiffstats
path: root/todolists
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-04-09 23:29:02 +0200
committerDan McGee <dan@archlinux.org>2011-04-09 23:34:10 +0200
commit842f59d018947ca696cf116e9d1591f2ad83f8a7 (patch)
tree3a2039605b4eca878f8c9d923aa0c18103db0a84 /todolists
parent12ff807338ccdff8f46f0d430f6b0dd56afc09bd (diff)
downloadarchweb-842f59d018947ca696cf116e9d1591f2ad83f8a7.tar.gz
archweb-842f59d018947ca696cf116e9d1591f2ad83f8a7.tar.xz
Rename local variables for clarity
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'todolists')
-rw-r--r--todolists/views.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/todolists/views.py b/todolists/views.py
index a2029be..d3ed781 100644
--- a/todolists/views.py
+++ b/todolists/views.py
@@ -35,7 +35,7 @@ class TodoListForm(forms.ModelForm):
@permission_required('main.change_todolistpkg')
@never_cache
def flag(request, listid, pkgid):
- list = get_object_or_404(Todolist, id=listid)
+ todolist = get_object_or_404(Todolist, id=listid)
pkg = get_object_or_404(TodolistPkg, id=pkgid)
pkg.complete = not pkg.complete
pkg.save()
@@ -48,8 +48,8 @@ def flag(request, listid, pkgid):
@login_required
@never_cache
def view(request, listid):
- list = get_object_or_404(Todolist, id=listid)
- return direct_to_template(request, 'todolists/view.html', {'list': list})
+ todolist = get_object_or_404(Todolist, id=listid)
+ return direct_to_template(request, 'todolists/view.html', {'list': todolist})
@login_required
@never_cache
@@ -161,13 +161,13 @@ def send_todolist_emails(todo_list, new_packages):
maint_packages.setdefault(maint, []).append(todo_package)
for maint, packages in maint_packages.iteritems():
- c = Context({
+ ctx = Context({
'todo_packages': sorted(packages),
'todolist': todo_list,
})
- t = loader.get_template('todolists/email_notification.txt')
+ template = loader.get_template('todolists/email_notification.txt')
send_mail('Packages added to todo list \'%s\'' % todo_list.name,
- t.render(c),
+ template.render(ctx),
'Arch Website Notification <nobody@archlinux.org>',
[maint],
fail_silently=True)