equal
deleted
inserted
replaced
20 __authors__ = [ |
20 __authors__ = [ |
21 '"Lennard de Rijk" <ljvderijk@gmail.com>', |
21 '"Lennard de Rijk" <ljvderijk@gmail.com>', |
22 ] |
22 ] |
23 |
23 |
24 |
24 |
|
25 import os |
25 import time |
26 import time |
26 import os |
|
27 |
27 |
28 from google.appengine.api import users |
28 from google.appengine.api import users |
29 |
29 |
30 from django.template import loader |
30 from django.template import loader |
31 from django.utils.encoding import force_unicode |
31 from django.utils.encoding import force_unicode |
37 import soc.views.models as model_view |
37 import soc.views.models as model_view |
38 import soc.logic.models as model_logic |
38 import soc.logic.models as model_logic |
39 |
39 |
40 |
40 |
41 DEF_NEW_NOTIFICATION_MSG = ugettext_lazy( |
41 DEF_NEW_NOTIFICATION_MSG = ugettext_lazy( |
42 "You have received a new Notification") |
42 "You have received a new Notification.") |
43 |
43 |
44 DEF_INVITATION_MSG_FMT = ugettext_lazy( |
44 DEF_INVITATION_MSG_FMT = ugettext_lazy( |
45 "Invitation to become a %(role)s for %(group)s") |
45 "Invitation to become a %(role)s for %(group)s.") |
46 |
46 |
47 DEF_WELCOME_MSG_FMT = ugettext_lazy("Welcome to Melange %(name)s") |
47 DEF_WELCOME_MSG_FMT = ugettext_lazy("Welcome to Melange %(name)s,") |
48 |
48 |
49 def sendInviteNotification(entity): |
49 def sendInviteNotification(entity): |
50 """Sends out an invite notification to the user the request is for. |
50 """Sends out an invite notification to the user the request is for. |
51 |
51 |
52 Args: |
52 Args: |