From d64cc9485d728f1860b914d0ac919d9e8e6cbbba Mon Sep 17 00:00:00 2001
From: Sander Roosendaal
Date: Sat, 17 Mar 2018 19:21:38 +0100
Subject: [PATCH 1/2] email bounce added and updated privacy policy
---
rowers/models.py | 2 ++
rowers/templates/privacypolicy.html | 23 ++++++++++++++++++++++-
2 files changed, 24 insertions(+), 1 deletion(-)
diff --git a/rowers/models.py b/rowers/models.py
index f8e75a01..c5afa452 100644
--- a/rowers/models.py
+++ b/rowers/models.py
@@ -571,6 +571,8 @@ class Rower(models.Model):
getemailnotifications = models.BooleanField(default=False,
verbose_name='Receive email notifications')
+ emailbounced = models.BooleanField(default=False,
+ verbose_name='Email Address Bounced')
rowerplan = models.CharField(default='basic',max_length=30,
choices=plans)
diff --git a/rowers/templates/privacypolicy.html b/rowers/templates/privacypolicy.html
index 924c63ca..a3faa516 100644
--- a/rowers/templates/privacypolicy.html
+++ b/rowers/templates/privacypolicy.html
@@ -92,7 +92,28 @@
The data protection officer for rowsandall.com is Sander Roosendaal and he may be contacted
at support@rowsandall.com.
-
+
+
+Notifications and Email Policy
+
+
+ Some actions on the site result in an individual email sent to you.
+
+
+
+ We will rarely use mass email to communicate to all our users. These cases
+ are limited to substantial changes in terms and conditions and other
+ announcements impacting the terms on which you use the site. We will
+ it is important to get these messages to you. If you do not with
+ to receive such emails, you can indicate so in the user settings.
+
+
+
+ Other site related communication (new features, outages, bugs,
+ price changes) are communicated through announcements on the
+ website, throught Twitter, Facebook and our blog
+ posts.
+
Data Deletion
From d3e3aa1343e31cd8daa73337d0dfc08a80f66c83 Mon Sep 17 00:00:00 2001
From: Sander Roosendaal
Date: Sat, 17 Mar 2018 19:39:03 +0100
Subject: [PATCH 2/2] reset emailbounced when user changes email
---
rowers/views.py | 8 ++++++++
templates/basebase.html | 5 +++++
2 files changed, 13 insertions(+)
diff --git a/rowers/views.py b/rowers/views.py
index f2ba6f6b..69efcd63 100644
--- a/rowers/views.py
+++ b/rowers/views.py
@@ -11231,11 +11231,16 @@ def rower_edit_view(request,rowerid=0,message=""):
getemailnotifications = cd['getemailnotifications']
defaulttimezone=cd['defaulttimezone']
u = r.user
+ if u.email != email and len(email):
+ resetbounce = True
+ else:
+ resetbounce = False
if len(first_name):
u.first_name = first_name
u.last_name = last_name
if len(email): ## and check_email_freeforuse(u,email):
u.email = email
+ resetbounce = True
u.save()
@@ -11246,6 +11251,9 @@ def rower_edit_view(request,rowerid=0,message=""):
r.showfavoritechartnotes = showfavoritechartnotes
r.sex = sex
r.birthdate = birthdate
+ if resetbounce and r.emailbounced:
+ print "aap"
+ r.emailbounced = False
r.save()
form = RowerForm(instance=r)
powerform = RowerPowerForm(instance=r)
diff --git a/templates/basebase.html b/templates/basebase.html
index 6aaaac8a..f88878fe 100644
--- a/templates/basebase.html
+++ b/templates/basebase.html
@@ -247,6 +247,11 @@
{{ user.rower.protrialexpires|date_dif|ddays }} days left in Pro trial
{% endif %}
+ {% if user.rower.emailbounced %}
+
+ Your email bounced. Please update your email address in the user settings
+
+ {% endif %}
{% if messages %}
{% for message in messages %}
{% if message.level == DEFAULT_MESSAGE_LEVELS.ERROR %}