Fix state attributes in motion pdf.

This commit is contained in:
Norman Jäckel 2013-02-19 23:43:20 +01:00
parent 60bbf86d81
commit 03d57d17b0
1 changed files with 2 additions and 2 deletions

View File

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