From c97b23046e161247509c104e74a5d9b73f8701be Mon Sep 17 00:00:00 2001 From: Joey Hagedorn Date: Tue, 1 Aug 2006 20:34:04 +0000 Subject: Fixes typo in previous version git-svn-id: https://svn.mcs.anl.gov/repos/bcfg/trunk/bcfg2@2023 ce84e21b-d406-0410-9b95-82705330c041 --- reports/brpt/reports/templatetags/django_templating_sigh.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'reports') diff --git a/reports/brpt/reports/templatetags/django_templating_sigh.py b/reports/brpt/reports/templatetags/django_templating_sigh.py index 555ef4e6c..85f4d61a2 100644 --- a/reports/brpt/reports/templatetags/django_templating_sigh.py +++ b/reports/brpt/reports/templatetags/django_templating_sigh.py @@ -16,12 +16,13 @@ def set_interaction(parser, token): def sortwell(value): "sorts a list(or evaluates queryset to list) of bad, extra, or modified items in the best way for presentation" configItems = list(value) - sort(sort(configItems,lambda x,y: cmp(x.name, y.name)), lambda x,y: cmp(x.kind, y.kind)) + configItems.sort(lambda x,y: cmp(x.name, y.name)) + configItems.sort(lambda x,y: cmp(x.kind, y.kind)) return configItems def sortname(value): "sorts a list( or evaluates queryset) by name" configItems = list(value) - sort(configItems,lambda x,y: cmp(x.name, y.name)) + configItems.sort(lambda x,y: cmp(x.name, y.name)) return configItems class SetInteraction(template.Node): -- cgit v1.2.3-1-g7c22