equal
deleted
inserted
replaced
88 |
88 |
89 sendNotification(to_user, message_properties, subject, template) |
89 sendNotification(to_user, message_properties, subject, template) |
90 |
90 |
91 |
91 |
92 def sendNewClubNotification(entity): |
92 def sendNewClubNotification(entity): |
93 """Sends out an invite notification to the applicant of the club |
93 """Sends out an invite notification to the applicant of the club. |
94 |
94 |
95 Args: |
95 Args: |
96 entity : An accepted club application |
96 entity : An accepted club application |
97 """ |
97 """ |
98 |
98 |
119 |
119 |
120 def sendNotification(to_user, message_properties, subject, template): |
120 def sendNotification(to_user, message_properties, subject, template): |
121 """Sends out an notification to the specified user. |
121 """Sends out an notification to the specified user. |
122 |
122 |
123 Args: |
123 Args: |
124 entity : A request containing the information needed to create the message |
124 to_user : user to which the notification will be send |
|
125 message_properties : email message properties |
|
126 subject : subject of notification email |
|
127 template : template used for generating notification |
125 """ |
128 """ |
126 |
129 |
127 from_user = model_logic.user.logic.getForCurrentAccount() |
130 from_user = model_logic.user.logic.getForCurrentAccount() |
128 |
131 |
129 new_message_properties = { |
132 new_message_properties = { |
149 # create and put a new notification in the datastore |
152 # create and put a new notification in the datastore |
150 model_logic.notification.logic.updateOrCreateFromFields(fields, key_fields) |
153 model_logic.notification.logic.updateOrCreateFromFields(fields, key_fields) |
151 |
154 |
152 |
155 |
153 def sendNewNotificationMessage(notification_entity): |
156 def sendNewNotificationMessage(notification_entity): |
154 """Sends an email to a user about a new notification |
157 """Sends an email to a user about a new notification. |
155 |
158 |
156 Args: |
159 Args: |
157 notification_entity: Notification about which the message should be sent |
160 notification_entity: Notification about which the message should be sent |
158 """ |
161 """ |
159 |
162 |