This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# gpgedit: edit an encrypted file with an associated list of recipients | |
# | |
# $ gpgedit secrets.gpg [gpg args] | |
# | |
# gpgedit needs the companion file "secrets.rcp" to exist, and contains a list | |
# of intended recipients, one per line. The recipient file can contain end-of- | |
# line comments, starting with the "#" character. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from datetime import datetime | |
import mandrill | |
def send_email(to_email, to_name, subject, message_text, from_email = '[email protected]', from_name='RPS Exemplar'): | |
#additional message parameters https://mandrillapp.com/api/docs/messages.JSON.html | |
api_key = _MANDRILL_APP_KEY_ | |
try: | |
mandrill_client = mandrill.Mandrill(api_key) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.route("/claims/new-employment-end-date", methods=["POST"]) | |
def new_employment_end_date(): | |
def on_success(validated): | |
draft_id = session.get('draft_id') | |
day = validated['new_job_end']['day'] | |
month = validated['new_job_end']['month'] | |
year = validated['new_job_end']['year'] | |
date = "{day}/{month}/{year}".format(**locals()) |