we don't need the item-sort-def anymore

This commit is contained in:
Oskar Hahn 2012-02-20 00:15:44 +01:00
parent 22ef402a50
commit ab99f791f1

View File

@ -27,18 +27,6 @@ def is_summary():
return False
def children_list(items):
"""
Return a list for items with all childitems in the right order.
"""
l = []
for item in items:
l.append(item)
if item.children:
l += children_list(item.children)
return l
def gen_confirm_form_for_items(request, message, url, singleitem=None):
if singleitem:
messages.warning(request, '%s<form action="%s" method="post"><input type="hidden" value="%s" name="csrfmiddlewaretoken"><input type="submit" value="%s" /> <input type="button" value="%s"></form>' % (message, url, csrf(request)['csrf_token'], _("Yes"), _("No")))