From 3b2763e2dca43068ca5244dcd177d3ca3bd79918 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Sun, 4 Sep 2011 19:06:48 +0200 Subject: [PATCH] PDF: Fixed items in layer 3+ --- openslides/utils/pdf.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/openslides/utils/pdf.py b/openslides/utils/pdf.py index 35e8c418b..b9e7f8def 100755 --- a/openslides/utils/pdf.py +++ b/openslides/utils/pdf.py @@ -210,14 +210,16 @@ def print_agenda(request): story = [Spacer(1,3*cm)] doc.title = _("Agenda") - # print item list items = children_list(Item.objects.filter(parent=None).order_by('weight')) for item in items: if item.hidden is False: - # print all items + # print all items" if item.parents: - story.append(Paragraph(item.title, stylesheet['Subitem'])) + space = "" + for p in item.parents: + space += "   " + story.append(Paragraph(space+item.title, stylesheet['Subitem'])) else: story.append(Paragraph(item.title, stylesheet['Item']))