Example #1
0
def generic_letter(letter):
    if letter.is_postcard:
        return utils.render_postcard(
            "correspondence/generic-postcard.txt",
            {"letter": letter, "address": letter.recipient.profile.full_address()},
        )
    else:
        return utils.render_tex_to_pdf("correspondence/generic-letter.tex", {"letter": letter})
Example #2
0
def generic_letter(letter):
    if letter.is_postcard:
        return utils.render_postcard("correspondence/generic-postcard.txt", {
            'letter': letter,
            'address': letter.recipient.profile.full_address()
        })
    else:
        return utils.render_tex_to_pdf("correspondence/generic-letter.tex", {
            'letter': letter,
        })
Example #3
0
def waitlist_postcard(letter):
    return utils.render_postcard(
        "correspondence/waitlist-postcard.txt", {
            'letter': letter,
            'address': letter.recipient.profile.full_address(),
        })
Example #4
0
def waitlist_postcard(letter):
    return utils.render_postcard("correspondence/waitlist-postcard.txt", {
        'letter': letter,
        'address': letter.recipient.profile.full_address(),
    })
Example #5
0
def waitlist_postcard(letter):
    return utils.render_postcard(
        "correspondence/waitlist-postcard.txt", {"letter": letter, "address": letter.recipient.profile.full_address()}
    )