Mercurial > public > sg101
comparison gpp/messages/views.py @ 441:33d0c55e57a9
Fixing the link to the private messages options tab in the PM notification email.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 25 May 2011 02:39:08 +0000 |
parents | 241c80ff16c5 |
children | 4b9970ad0edb |
comparison
equal
deleted
inserted
replaced
440:ac9217eef610 | 441:33d0c55e57a9 |
---|---|
45 | 45 |
46 def _quota_check(box_name, count, request): | 46 def _quota_check(box_name, count, request): |
47 """ | 47 """ |
48 Checks the message box count against MSG_BOX_LIMIT. | 48 Checks the message box count against MSG_BOX_LIMIT. |
49 Emits a message to the user if the quota is exceeded. | 49 Emits a message to the user if the quota is exceeded. |
50 | 50 |
51 """ | 51 """ |
52 if count >= MSG_BOX_LIMIT: | 52 if count >= MSG_BOX_LIMIT: |
53 django_messages.warning(request, | 53 django_messages.warning(request, |
54 "Your %s is full. Please delete some messages." % box_name) | 54 "Your %s is full. Please delete some messages." % box_name) |
55 | 55 |