Merge pull request #541 from normanjaeckel/master

Small fix in the motion app in the PDFs.
This commit is contained in:
Oskar Hahn 2013-02-19 15:24:21 -08:00
commit f588cd58a3

View File

@ -50,7 +50,7 @@ def motion_to_pdf(pdf, motion):
motion_data.append([cell1a, cell1b]) motion_data.append([cell1a, cell1b])
# TODO: choose this in workflow # TODO: choose this in workflow
if motion.state.edit_as_submitter: if motion.state.allow_submitter_edit:
# Cell for the signature # Cell for the signature
cell2a = [] cell2a = []
cell2b = [] cell2b = []
@ -71,7 +71,7 @@ def motion_to_pdf(pdf, motion):
for supporter in supporters: for supporter in supporters:
cell3b.append(Paragraph("<seq id='counter'/>.&nbsp; %s" % unicode(supporter), cell3b.append(Paragraph("<seq id='counter'/>.&nbsp; %s" % unicode(supporter),
stylesheet['Signaturefield'])) stylesheet['Signaturefield']))
if motion.state.support: if motion.state.allow_support:
for count in range(config['motion_min_supporters'] - supporters.count()): for count in range(config['motion_min_supporters'] - supporters.count()):
cell3b.append(Paragraph("<seq id='counter'/>.&nbsp;" + 42 * "_", cell3b.append(Paragraph("<seq id='counter'/>.&nbsp;" + 42 * "_",
stylesheet['Signaturefield'])) stylesheet['Signaturefield']))