fbuser.last_name = lname fbuser.access_token = access_token fbuser.save() return fbuser def create_adult_child(adult, child, relation): adult_child = Adult_Child( adult = adult, child = child, relation = relation, can_view_schedule = True) adult_child.save() return adult_child from notify import models as notify notify.create_message_content('facebook','user_joined', '{{ actor.first_name }} has joined Playdation!') notify.create_message_content('update','contact_joined','{{ actor.first_name }} has joined Playdation!') notify.create_message_content('message','playlist_request_received', '{{ actor.first_name }} wants to add your child {{ actee_child.first_name }} to their child\'s {{ actor_child.first_name }} playlist. <p>{{ message }}</p> click <a href="#" onclick="javascript:accept_friendship({{actor_child.id}},{{actee_child.id}}); return false;">here</a> to accept') notify.create_message_content('message','playlist_request_received', 'Someone wants to add your child to their child\'s playlist', 'subject') notify.create_message_content('email','playlist_request_received', '{{ actor.first_name }} wants to add your child {{ actee_child.first_name }} to their child\'s {{ actor_child.first_name }} playlist') notify.create_message_content('email','playlist_request_received', 'Someone wants to add your child to their child\'s playlist', 'subject') notify.create_message_content('message','playlist_request_confirmed', '{{ actor.first_name }} has accepted your playlist request. {{ actor_child.first_name }} has been added to {{ actee_child.first_name }}\'s playlist') notify.create_message_content('message','playlist_request_confirmed', '{{ actor.first_name }} has confirmed your playlist request', 'subject')
def create_notify_types(app, created_models, verbosity, **kwargs): notify.create_message_content('facebook', 'user_joined', '') notify.create_message_content( 'update', 'user_joined', 'Welcome to Playdation! This is your first update. As you make plans with other parents, important updates will appear here.' ) notify.create_message_content( 'update', 'contact_joined', '{{ actor.first_name }} has joined Playdation!') notify.create_message_content( 'update', 'status_update_other', '{{ actor.first_name }}: {{ status }} with {{ actor_child.first_name}}.' ) notify.create_message_content( 'update', 'status_update_self', '{{ actor.first_name }}: {{status}} with {{ actor_children }}.') notify.create_message_content( 'update', 'status_update', '{{ actor.first_name }}: {{status}} with {{ actor_children }}.') notify.create_message_content( 'message', 'playlist_request_received', '{{ actee_child.first_name }} has received a friend request from {{ actor_child.first_name }}.' ) notify.create_message_content( 'message', 'playlist_request_received', '{{actee_child.first_name}} has received a friend request!', 'subject') notify.create_message_content( 'email', 'playlist_request_received', '{{ actee_child.first_name }} has received a friend request from {{ actor_child.first_name }} on Playdation. <a href="http://' + settings.WWW_HOST + '{% url messages_inbox %}">[View Details Here]</a>') notify.create_message_content( 'email', 'playlist_request_received', '{{actee_child.first_name}} has received a friend request on Playdation!', 'subject') notify.create_message_content( 'message', 'playlist_request_confirmed', '{{ actee_child.first_name }} and {{ actor_child.first_name }} are now connected!', 'subject') notify.create_message_content( 'message', 'playlist_request_confirmed', '{{ actor_child.first_name }} has accepted {{ actee_child.first_name }}\'s friend request. {{ actee_child.first_name }} and {{ actor_child.first_name }} are now connected on Playdation.' ) notify.create_message_content( 'email', 'playlist_request_confirmed', '{{ actee_child.first_name }} and {{ actor_child.first_name }} are now connected!', 'subject') notify.create_message_content( 'email', 'playlist_request_confirmed', '{{ actor_child.first_name }} has accepted {{ actee_child.first_name }}\'s friend request. {{ actee_child.first_name }} and {{ actor_child.first_name }} are now connected on Playdation.' ) notify.create_message_content( 'update', 'friend_new_friend', '{{ actor.first_name }} {{ actor.last_name }} has added {{ actee_child.first_name }} to {{ actor_child.first_name }}\'s playlist ' ) notify.create_message_content( 'message', 'playdate_request_received', '{{ actor.first_name }}\ child {{ actor_child.first_name }} has invited your child {{ actee_child.first_name }} to a playdate. Click <a href="{% url view_playdate playdate.id %}">here</a> for details' ) notify.create_message_content( 'message', 'playdate_request_received', '{{ actor_child.first_name }} has invited your child to a playdate.', 'subject') notify.create_message_content( 'email', 'playdate_request_received', '{{ actor.first_name }} child {{ actor_child.first_name }} has invited your child {{ actee_child.first_name }} to a playdate. Click <a href="{% if email %}{% url view_playdate_with_token playdate.id token %}{% else %}{% url view_playdate playdate.id %}{% endif %}">here</a> for details' ) notify.create_message_content( 'email', 'playdate_request_received', '{{ actor_child.first_name }} has invited your child to a playdate.', 'subject') notify.create_message_content('facebook', 'playdate_request_received', '') notify.create_message_content( 'message', 'playdate_canceled', "{{ organizer.name }} has canceled the playdate you were planning on attending. <a href='{{active_invite.playdate_url}}'>[View Playdate Details]</a>" ) notify.create_message_content( 'message', 'playdate_canceled', "{{ organizer.name }} has canceled the playdate you were planning on attending.", 'subject') notify.create_message_content( 'email', 'playdate_canceled', "{{ organizer.name }} has canceled the playdate you were planning on attending. <a href='{{active_invite.playdate_url}}'>[View Playdate Details]</a>" ) notify.create_message_content( 'email', 'playdate_canceled', "{{ organizer.name }} has canceled the playdate you were planning on attending.", 'subject') notify.create_message_content( 'message', 'playdate_attendance_confirmed', "{% if email %}{{email}}{% else %}{{ actor.first_name }}'s child {{ actor_child.first_name }}{% endif %} has accepted your invitation on Playdation. <a href='{{playdate.direct_url}}'>[View Details]</a> " ) notify.create_message_content( 'message', 'playdate_attendance_confirmed', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }} {%endif%} has accepted your invite', 'subject') notify.create_message_content( 'email', 'playdate_attendance_confirmed', "{% if email %}{{email}}{% else %}{{ actor.first_name }}'s child {{ actor_child.first_name }}{%endif%} has accepted your invitation on Playdation. <a href='{{playdate.direct_url}}'>[View Details]</a> " ) notify.create_message_content( 'email', 'playdate_attendance_confirmed', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }}{%endif%} has accepted your invite', 'subject') notify.create_message_content( 'message', 'playdate_attendance_maybe', "{% if email %}{{email}}{% else %}{{ actor.first_name }}'s child {{ actor_child.first_name }}{%endif%} is unsure whether he/she is able to attend {{ actee_child.first_name }}'s activity. <a href='{{playdate.direct_url}}'>[View Details]</a>" ) notify.create_message_content( 'message', 'playdate_attendance_maybe', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }}{%endif%} has responded maybe to your invite', 'subject') notify.create_message_content( 'email', 'playdate_attendance_maybe', "{% if email %}{{email}}{% else %}{{ actor.first_name }}'s child {{ actor_child.first_name }}{%endif%} is unsure whether he/she is able to attend {{ actee_child.first_name }}'s activity. <a href='{{playdate.direct_url}}'>[View Details]</a>" ) notify.create_message_content( 'email', 'playdate_attendance_maybe', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }}{%endif%} has responded maybe to your invite.', 'subject') notify.create_message_content( 'message', 'playdate_attendance_declined', "{% if email %}{{email}}{% else %}{{ actor.first_name }}'s child {{ actor_child.first_name }}{%endif%} is unable to attend {{ actee_child.first_name }}'s activity. <a href='{{playdate.direct_url}}'>[View Details]</a>" ) notify.create_message_content( 'message', 'playdate_attendance_declined', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }}{%endif%} has declined your invite', 'subject') notify.create_message_content( 'email', 'playdate_attendance_declined', "{% if email %}{{email}}{% else %}{{ actor.first_name }}'s child {{ actor_child.first_name }}{%endif%} is unable to attend {{ actee_child.first_name }}'s activity. <a href='{{playdate.direct_url}}'>[View Details]</a>" ) notify.create_message_content( 'email', 'playdate_attendance_declined', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }}{%endif%} has declined your invite.', 'subject') notify.create_message_content('message', 'notify_attendees_accept', 'Activity Update!', 'subject') notify.create_message_content( 'message', 'notify_attendees_accept', """ {{ invite.to }} has accepted {{organizer.get_profile.name}}\'s activity invite on behalf of {{ invite.possessive }} child. <a href="{{active_invite.playdate_url}}">[View Details]</a> """) notify.create_message_content('email', 'notify_attendees_accept', 'Activity Update!', 'subject') notify.create_message_content( 'email', 'notify_attendees_accept', """ {{ invite.to }} has accepted {{organizer.get_profile.name}}\'s activity invite on behalf of {{invite.possessive}} child. <a href="{{active_invite.playdate_url}}">[View Details]</a> """) notify.create_message_content('email', 'join_invitation', join_invitation_content) notify.create_message_content( 'email', 'join_invitation', '{{ actor.first_name }} has invited you to Playdation!', 'subject') notify.create_message_content('email', 'welcome_email', welcome_email_content) notify.create_message_content('email', 'welcome_email', 'Welcome to Playdation!', 'subject') notify.create_message_content('email', 'email_confirmation', email_confirmation_content) notify.create_message_content('email', 'email_confirmation', 'Confirm e-mail address for Playdation.', 'subject') notify.create_message_content('email', 'beta_invite', beta_invite_content) notify.create_message_content('email', 'beta_invite', "Your Child's Social Life", 'subject') notify.create_message_content('email', 'beta_2_invite', beta_2_invite_content) notify.create_message_content('email', 'beta_2_invite', "Plan Your Child's Social Life!", 'subject') notify.create_message_content('email', 'message_received', 'Message Received on Playdation', 'subject') notify.create_message_content( 'email', 'message_received', 'You have just received a message from a friend on Playdation. Click <a href="http://' + settings.WWW_HOST + '{% url messages_inbox %}">here</a> to view the message.') notify.create_message_content('email', 'header', email_header) notify.create_message_content('email', 'footer', email_footer) notify.create_message_content('email', 'basic_footer', basic_footer)
def create_notify_types(app, created_models, verbosity, **kwargs): notify.create_message_content('facebook','user_joined', '') notify.create_message_content('update','user_joined', 'Welcome to Playdation! This is your first update. As you make plans with other parents, important updates will appear here.') notify.create_message_content('update','contact_joined','{{ actor.first_name }} has joined Playdation!') notify.create_message_content('update','status_update_other','{{ actor.first_name }}: {{ status }} with {{ actor_child.first_name}}.') notify.create_message_content('update','status_update_self','{{ actor.first_name }}: {{status}} with {{ actor_children }}.') notify.create_message_content('update','status_update','{{ actor.first_name }}: {{status}} with {{ actor_children }}.') notify.create_message_content('message','playlist_request_received', '{{ actee_child.first_name }} has received a friend request from {{ actor_child.first_name }}.') notify.create_message_content('message','playlist_request_received', '{{actee_child.first_name}} has received a friend request!', 'subject') notify.create_message_content('email','playlist_request_received', '{{ actee_child.first_name }} has received a friend request from {{ actor_child.first_name }} on Playdation. <a href="http://'+settings.WWW_HOST+'{% url messages_inbox %}">[View Details Here]</a>') notify.create_message_content('email','playlist_request_received', '{{actee_child.first_name}} has received a friend request on Playdation!', 'subject') notify.create_message_content('message','playlist_request_confirmed', '{{ actee_child.first_name }} and {{ actor_child.first_name }} are now connected!', 'subject') notify.create_message_content('message','playlist_request_confirmed', '{{ actor_child.first_name }} has accepted {{ actee_child.first_name }}\'s friend request. {{ actee_child.first_name }} and {{ actor_child.first_name }} are now connected on Playdation.') notify.create_message_content('email','playlist_request_confirmed', '{{ actee_child.first_name }} and {{ actor_child.first_name }} are now connected!', 'subject') notify.create_message_content('email','playlist_request_confirmed', '{{ actor_child.first_name }} has accepted {{ actee_child.first_name }}\'s friend request. {{ actee_child.first_name }} and {{ actor_child.first_name }} are now connected on Playdation.') notify.create_message_content('update','friend_new_friend','{{ actor.first_name }} {{ actor.last_name }} has added {{ actee_child.first_name }} to {{ actor_child.first_name }}\'s playlist ') notify.create_message_content('message', 'playdate_request_received', '{{ actor.first_name }}\ child {{ actor_child.first_name }} has invited your child {{ actee_child.first_name }} to a playdate. Click <a href="{% url view_playdate playdate.id %}">here</a> for details') notify.create_message_content('message', 'playdate_request_received', '{{ actor_child.first_name }} has invited your child to a playdate.', 'subject') notify.create_message_content('email', 'playdate_request_received', '{{ actor.first_name }} child {{ actor_child.first_name }} has invited your child {{ actee_child.first_name }} to a playdate. Click <a href="{% if email %}{% url view_playdate_with_token playdate.id token %}{% else %}{% url view_playdate playdate.id %}{% endif %}">here</a> for details') notify.create_message_content('email', 'playdate_request_received', '{{ actor_child.first_name }} has invited your child to a playdate.', 'subject') notify.create_message_content('facebook', 'playdate_request_received', '') notify.create_message_content('message', 'playdate_canceled', "{{ organizer.name }} has canceled the playdate you were planning on attending. <a href='{{active_invite.playdate_url}}'>[View Playdate Details]</a>") notify.create_message_content('message', 'playdate_canceled', "{{ organizer.name }} has canceled the playdate you were planning on attending.", 'subject') notify.create_message_content('email', 'playdate_canceled', "{{ organizer.name }} has canceled the playdate you were planning on attending. <a href='{{active_invite.playdate_url}}'>[View Playdate Details]</a>") notify.create_message_content('email', 'playdate_canceled', "{{ organizer.name }} has canceled the playdate you were planning on attending.", 'subject') notify.create_message_content('message', 'playdate_attendance_confirmed', "{% if email %}{{email}}{% else %}{{ actor.first_name }}'s child {{ actor_child.first_name }}{% endif %} has accepted your invitation on Playdation. <a href='{{playdate.direct_url}}'>[View Details]</a> ") notify.create_message_content('message', 'playdate_attendance_confirmed', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }} {%endif%} has accepted your invite', 'subject') notify.create_message_content('email', 'playdate_attendance_confirmed', "{% if email %}{{email}}{% else %}{{ actor.first_name }}'s child {{ actor_child.first_name }}{%endif%} has accepted your invitation on Playdation. <a href='{{playdate.direct_url}}'>[View Details]</a> ") notify.create_message_content('email', 'playdate_attendance_confirmed', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }}{%endif%} has accepted your invite', 'subject') notify.create_message_content('message', 'playdate_attendance_maybe', "{% if email %}{{email}}{% else %}{{ actor.first_name }}'s child {{ actor_child.first_name }}{%endif%} is unsure whether he/she is able to attend {{ actee_child.first_name }}'s activity. <a href='{{playdate.direct_url}}'>[View Details]</a>") notify.create_message_content('message', 'playdate_attendance_maybe', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }}{%endif%} has responded maybe to your invite', 'subject') notify.create_message_content('email', 'playdate_attendance_maybe', "{% if email %}{{email}}{% else %}{{ actor.first_name }}'s child {{ actor_child.first_name }}{%endif%} is unsure whether he/she is able to attend {{ actee_child.first_name }}'s activity. <a href='{{playdate.direct_url}}'>[View Details]</a>") notify.create_message_content('email', 'playdate_attendance_maybe', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }}{%endif%} has responded maybe to your invite.', 'subject') notify.create_message_content('message', 'playdate_attendance_declined', "{% if email %}{{email}}{% else %}{{ actor.first_name }}'s child {{ actor_child.first_name }}{%endif%} is unable to attend {{ actee_child.first_name }}'s activity. <a href='{{playdate.direct_url}}'>[View Details]</a>") notify.create_message_content('message', 'playdate_attendance_declined', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }}{%endif%} has declined your invite', 'subject') notify.create_message_content('email', 'playdate_attendance_declined', "{% if email %}{{email}}{% else %}{{ actor.first_name }}'s child {{ actor_child.first_name }}{%endif%} is unable to attend {{ actee_child.first_name }}'s activity. <a href='{{playdate.direct_url}}'>[View Details]</a>") notify.create_message_content('email', 'playdate_attendance_declined', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }}{%endif%} has declined your invite.', 'subject') notify.create_message_content('message', 'notify_attendees_accept', 'Activity Update!', 'subject') notify.create_message_content('message', 'notify_attendees_accept', """ {{ invite.to }} has accepted {{organizer.get_profile.name}}\'s activity invite on behalf of {{ invite.possessive }} child. <a href="{{active_invite.playdate_url}}">[View Details]</a> """ ) notify.create_message_content('email', 'notify_attendees_accept', 'Activity Update!', 'subject') notify.create_message_content('email', 'notify_attendees_accept', """ {{ invite.to }} has accepted {{organizer.get_profile.name}}\'s activity invite on behalf of {{invite.possessive}} child. <a href="{{active_invite.playdate_url}}">[View Details]</a> """ ) notify.create_message_content('email', 'join_invitation', join_invitation_content) notify.create_message_content('email', 'join_invitation', '{{ actor.first_name }} has invited you to Playdation!', 'subject') notify.create_message_content('email', 'welcome_email', welcome_email_content) notify.create_message_content('email', 'welcome_email', 'Welcome to Playdation!', 'subject') notify.create_message_content('email', 'email_confirmation', email_confirmation_content) notify.create_message_content('email', 'email_confirmation', 'Confirm e-mail address for Playdation.', 'subject') notify.create_message_content('email', 'beta_invite', beta_invite_content) notify.create_message_content('email', 'beta_invite', "Your Child's Social Life", 'subject') notify.create_message_content('email', 'beta_2_invite', beta_2_invite_content) notify.create_message_content('email', 'beta_2_invite', "Plan Your Child's Social Life!", 'subject') notify.create_message_content('email', 'message_received', 'Message Received on Playdation', 'subject') notify.create_message_content('email', 'message_received', 'You have just received a message from a friend on Playdation. Click <a href="http://'+settings.WWW_HOST+'{% url messages_inbox %}">here</a> to view the message.') notify.create_message_content('email','header', email_header) notify.create_message_content('email','footer', email_footer) notify.create_message_content('email','basic_footer', basic_footer)
# object - photo, link, playdate, #notify.create_message_content('message', 'playdate_request_received', '{{ actor.first_name }}\'s child {{ actor_child.first_name }} has invited your child {{ actee_child.first_name }} to a playdate. Click <a href="#">here</a> for details') #notify.create_message_content('message', 'playdate_request_received', '{{ actor_child.first_name }} {{ actor_child.last_name}} has invited your child to a playdate.', 'subject') #notify.create_message_content('email', 'playdate_request_received', '{{ actor.first_name }}\'s child {{ actor_child.first_name }} has invited your child {{ actee_child.first_name }} to a playdate. Click <a href="#">here</a> for details') #notify.create_message_content('email', 'playdate_request_received', '{{ actor_child.first_name }} {{ actor_child.last_name}} has invited your child to a playdate.', 'subject') #notify.create_message_content('message', 'playdate_request_received', '{{ actor.first_name }}\'s child {{ actor_child.first_name }} has invited your child {{ actee_child.first_name }} to a playdate. Click <a href="#">here</a> for details') #notify.create_message_content('message', 'playdate_request_received', '{{ actor_child.first_name }} {{ actor_child.last_name}} has invited your child to a playdate.', 'subject') #notify.create_message_content('email', 'playdate_request_received', '{{ actor.first_name }}\'s child {{ actor_child.first_name }} has invited your child {{ actee_child.first_name }} to a playdate. Click <a href="#">here</a> for details') #notify.create_message_content('email', 'playdate_request_received', '{{ actor_child.first_name }} {{ actor_child.last_name}} has invited your child to a playdate.', 'subject') notify.create_message_content('message', 'playdate_request_received', '{{ actor.first_name }}\'s child {{ actor_child.first_name }} has invited your child {{ actee_child.first_name }} to a playdate. Click <a href="{% url view_playdate playdate.id %}">here</a> for details') notify.create_message_content('message', 'playdate_request_received', '{{ actor_child.first_name }} {{ actor_child.last_name}} has invited your child to a playdate.', 'subject') notify.create_message_content('email', 'playdate_request_received', '{{ actor.first_name }}\'s child {{ actor_child.first_name }} has invited your child {{ actee_child.first_name }} to a playdate. Click <a href="{% if email %}{% url view_playdate_with_token invite_id token %}{% else %}{% url view_playdate playdate.id %}{% endif %}">here</a> for details') notify.create_message_content('email', 'playdate_request_received', '{{ actor_child.first_name }} {{ actor_child.last_name}} has invited your child to a playdate.', 'subject') notify.create_message_content('message', 'playdate_attendance_confirmed', '{% if email %}{{email}}{% else %}{{ actor.first_name }}\'s child {{ actor_child.first_name }}{% endif %} has accepted your invitation to {{ actee_child.first_name }}\'s playdate. ') notify.create_message_content('message', 'playdate_attendance_confirmed', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }} {{ actor_child.last_name}}{%endif%} has accepted your playdate invite', 'subject') notify.create_message_content('email', 'playdate_attendance_confirmed', '{% if email %}{{email}}{% else %}{{ actor.first_name }}\'s child {{ actor_child.first_name }}{%endif%} has accepted your invitation to {{ actee_child.first_name }}\'s playdate. ') notify.create_message_content('email', 'playdate_attendance_confirmed', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }} {{ actor_child.last_name}}{%endif%} has accepted your playdate invite', 'subject') notify.create_message_content('message', 'playdate_attendance_declined', '{% if email %}{{email}}{% else %}{{ actor.first_name }}\'s child {{ actor_child.first_name }}{%endif%} has declined to attend {{ actee_child.first_name }}\'s playdate.') notify.create_message_content('message', 'playdate_attendance_declined', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }} {{ actor_child.last_name}}{%endif%} has declined your playdate invite', 'subject') notify.create_message_content('email', 'playdate_attendance_declined', '{% if email %}{{email}}{% else %}{{ actor.first_name }}\'s child {{ actor_child.first_name }}{%endif%} has declined to attend {{ actee_child.first_name }}\'s playdate.') notify.create_message_content('email', 'playdate_attendance_declined', '{% if email %}{{email}}{% else %}{{ actor_child.first_name }} {{ actor_child.last_name}}{%endif%} has declined your playdate invite.', 'subject')