def draftPrinted(ri, unused): ri["status"] = PRINTED_DRAFT user = dblayer.getCommitteeRapporteurID(ri["committeeId"]) ri["ownerId"] = user dblayer.save(ri) comm.setMessage(ri, user, "Draft printed!", "The draft resolution {} has been printed; go pick it up!".format(ri["resolutionId"])) comm.push(ri, user)
def finalPrinted(ri, unused): ri["status"] = PRINTED_FINAL_RESOLUTION user = dblayer.getCommitteeRapporteurID(ri["committeeId"]) ri["ownerId"] = user dblayer.save(ri) comm.setMessage(ri, user, "Final resolution printed!", "The final resolution {} has been printed; go pick it up!".format(ri["resolutionId"])) comm.push(ri, user)