Fix state attributes in motion pdf.
This commit is contained in:
parent
60bbf86d81
commit
03d57d17b0
@ -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'/>. %s" % unicode(supporter),
|
cell3b.append(Paragraph("<seq id='counter'/>. %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'/>. " + 42 * "_",
|
cell3b.append(Paragraph("<seq id='counter'/>. " + 42 * "_",
|
||||||
stylesheet['Signaturefield']))
|
stylesheet['Signaturefield']))
|
||||||
|
Loading…
Reference in New Issue
Block a user