コード例 #1
0
def create_playdate_invite_designs(app, created_models, verbosity, **kwargs):
    invites.create_playdate_invite_design(
        title="Male",
        subject=
        "{% if email %}Your Child{% else %}{{ actee_child.first_name }}{% endif %} has received an invitation!",
        small_image="http://www.cnn.com",
        big_image="http://www.cnn.com",
        description="Basic Male Vanilla Invite",
        html=content_male)
    invites.create_playdate_invite_design(
        title="Female",
        subject=
        "{% if email %}Your Child{% else %}{{ actee_child.first_name }}{% endif %} has received an invitation!",
        small_image="http://www.cnn.com",
        big_image="http://www.cnn.com",
        description="Basic Female Vanilla Invite",
        html=content_female)
    invites.create_playdate_invite_design(
        title="Toddler",
        subject=
        "{% if email %}Your Child{% else %}{{ actee_child.first_name }}{% endif %} has received an invitation!",
        small_image="http://www.cnn.com",
        big_image="http://www.cnn.com",
        description="Basic Vanilla Invite",
        html=content_kids)
コード例 #2
0
def create_playdate_invite_designs(app, created_models, verbosity, **kwargs):
    invites.create_playdate_invite_design(
        title="Male",
        subject=
        "{% if email %}Your Child{% else %}{{ actee_child.first_name }}{% endif %} has received a playdate request!",
        small_image="http://www.cnn.com",
        big_image="http://www.cnn.com",
        description="Basic Male Vanilla Invite",
        html=content_male)
    invites.create_playdate_invite_design(
        title="Female",
        subject=
        "{% if email %}Your Child{% else %}{{ actee_child.first_name }}{% endif %} has received a playdate request!",
        small_image="http://www.cnn.com",
        big_image="http://www.cnn.com",
        description="Basic Female Vanilla Invite",
        html=content_female)
    invites.create_playdate_invite_design(
        title="Toddler",
        subject="You are invited",
        small_image="http://www.cnn.com",
        big_image="http://www.cnn.com",
        description="Basic Vanilla Invite",
        html="Yo. Is your kid coming or not? He better. It will rock.")