changeset 3230 | 1d25e928c299 |
parent 2819 | b864288fd316 |
parent 3220 | 11b6016e3970 |
child 3451 | 6b46d73823f5 |
--- a/web/box.py Mon Sep 14 11:25:56 2009 +0200 +++ b/web/box.py Tue Sep 15 15:01:41 2009 +0200 @@ -57,7 +57,8 @@ result = [] actions_by_cat = {} for action in actions: - actions_by_cat.setdefault(action.category, []).append((action.title, action)) + actions_by_cat.setdefault(action.category, []).append( + (action.title, action) ) for key, values in actions_by_cat.items(): actions_by_cat[key] = [act for title, act in sorted(values)] for cat in self.categories_in_order: