コード例 #1
0
ファイル: ResolutionActions.py プロジェクト: azmun/webbot
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)
コード例 #2
0
ファイル: ResolutionActions.py プロジェクト: azmun/webbot
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)
コード例 #3
0
ファイル: ResolutionActions.py プロジェクト: azmun/webbot
def rejectDraft(ri, unused):
    ri["status"] = RETURNED_DRAFT
    usr = dblayer.getCommitteeRapporteurID(ri["committeeId"])
    ri["ownerId"] = usr
    dblayer.save(ri)
    comm.push(ri, usr)