From c34cc79a84e469c33a5454067e3ce45900dbfc5d Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Sun, 4 Sep 2011 08:31:44 +0200 Subject: [PATCH] Updated circle img path with SITE_ROOT. --- openslides/utils/pdf.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openslides/utils/pdf.py b/openslides/utils/pdf.py index cf54593ee..2e1c6d9b4 100755 --- a/openslides/utils/pdf.py +++ b/openslides/utils/pdf.py @@ -363,7 +363,8 @@ def print_application_poll(request, poll_id=None): doc = SimpleDocTemplate(response, pagesize=A4, topMargin=-6, bottomMargin=-6, leftMargin=0, rightMargin=0, showBoundary=False) story = [Spacer(0,0*cm)] - circle = "  " + imgpath = os.path.join(SITE_ROOT, 'static/images/circle.png') + circle = "  " % imgpath cell = [] cell.append(Spacer(0,0.8*cm)) cell.append(Paragraph(_("Application")+" #"+str(poll.application.number), stylesheet['Ballot_title'])) @@ -394,7 +395,8 @@ def print_assignment_poll(request, poll_id=None): doc = SimpleDocTemplate(response, pagesize=A4, topMargin=-6, bottomMargin=-6, leftMargin=0, rightMargin=0, showBoundary=False) story = [Spacer(0,0*cm)] - circle = " " + imgpath = os.path.join(SITE_ROOT, 'static/images/circle.png') + circle = "  " % imgpath cell = [] cell.append(Spacer(0,0.8*cm)) cell.append(Paragraph(_("Election") + ": " + poll.assignment.name, stylesheet['Ballot_title']))