1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-04 16:31:13 +00:00

Disable innerpub msg and msg reply

This commit is contained in:
xiez
2012-09-27 16:05:07 +08:00
parent 7274fdb31f
commit 669a556626
2 changed files with 5 additions and 5 deletions

View File

@@ -66,7 +66,7 @@ class InnerPubMsgReply(models.Model):
at_pattern = re.compile(r'(\s|^)(@\w+)', flags=re.U) at_pattern = re.compile(r'(\s|^)(@\w+)', flags=re.U)
@receiver(post_save, sender=InnerPubMsgReply) # @receiver(post_save, sender=InnerPubMsgReply)
def msgreply_save_handler(sender, instance, **kwargs): def msgreply_save_handler(sender, instance, **kwargs):
""" """
Handle sending notification to '@<user>' when reply messages. Handle sending notification to '@<user>' when reply messages.
@@ -107,7 +107,7 @@ def msgreply_save_handler(sender, instance, **kwargs):
detail=innerpub_msg.id) detail=innerpub_msg.id)
n.save() n.save()
@receiver(post_save, sender=InnerPubMsg) # @receiver(post_save, sender=InnerPubMsg)
def innerpub_msg_added_cb(sender, instance, **kwargs): def innerpub_msg_added_cb(sender, instance, **kwargs):
from_email = instance.from_email from_email = instance.from_email
@@ -123,7 +123,7 @@ def innerpub_msg_added_cb(sender, instance, **kwargs):
detail='') detail='')
n.save() n.save()
@receiver(post_save, sender=InnerPubMsgReply) # @receiver(post_save, sender=InnerPubMsgReply)
def innerpubmsg_reply_added_cb(sender, instance, **kwargs): def innerpubmsg_reply_added_cb(sender, instance, **kwargs):
innerpub_msg = instance.reply_to innerpub_msg = instance.reply_to
from_email = instance.from_email from_email = instance.from_email

View File

@@ -15,7 +15,7 @@
{% endif %} {% endif %}
</div> </div>
{% if notes %} {% if grpmsg_list or grpmsg_reply_list or orgmsg_list %}
<h3>提醒...</h3> <h3>提醒...</h3>
<ul> <ul>
{% if grpmsg_list %} {% if grpmsg_list %}
@@ -33,8 +33,8 @@
{% if orgmsg_list %} {% if orgmsg_list %}
<li><a href="{% url 'org_msg' %}" class="no-bold">{{ orgmsg_list|length }}条团体消息</a></li> <li><a href="{% url 'org_msg' %}" class="no-bold">{{ orgmsg_list|length }}条团体消息</a></li>
{% endif %} {% endif %}
{% endif %}
</ul> </ul>
{% endif %}
<h3>已用空间</h3> <h3>已用空间</h3>
<p>{{ quota_usage|filesizeformat }} {% if cloud_mode %}/ 2 GB {% endif %}</p> <p>{{ quota_usage|filesizeformat }} {% if cloud_mode %}/ 2 GB {% endif %}</p>