@@ -471,6 +475,16 @@ class DataSetAccessRequest(models.Model):
)
notification.save()
self.notification=notification
# send email to dataset owner
subject=text
message=_(
'A user requested access to your dataset "{}" at {}.'.format(
self.dataset,self.dataset.get_absolute_url()
)
)
email_to=[self.dataset.owner.email]
send_update_email(subject,message,email_to)
models.Model.save(self,*args,**kwargs)
def__str__(self):
...
...
@@ -503,6 +517,16 @@ class DataSetPublicationRequest(models.Model):
)
notification.save()
self.notification=notification
# send email to all curators
subject="[Curation] {}".format(text,)
message=_(
"The dataset {} has been submitted for publication in the category {}:\n\n{}\n\nPlease conduct a technical review of the uploaded data and metadata prior to your decision about the publication.".format(
{% if html %}<h1>{% trans "Update from Discuss Data" %}</h1>{% else %}{% trans "Update from Discuss Data" %}{% endif %}
{% if html %}
<p>{{ message|urlize }}</p>
<p><ahref="https://discuss-data.net/users/notifications">{% trans "View all your notifications" %}</a></p>
{% else %}
{{ message|safe }}
{% trans "You can view all your notifications at https://discuss-data.net/users/notifications" %}.
{% endif %}
--
{% if html %}<p>{% endif %}{% trans "Auto-generated update email from Discuss Data: Open platform for archiving, sharing and discussing research data with a focus on the post-Soviet region" %}{% if html %}</p>{% endif %}
{% if html %}<ahref="https://discuss-data.net"></a>{% else %}https://discuss-data.net{% endif %}