equal
deleted
inserted
replaced
147 'scope' : to_user, |
147 'scope' : to_user, |
148 'link_id' :'t%i' % (time.time()), |
148 'link_id' :'t%i' % (time.time()), |
149 'scope_path' : to_user.link_id |
149 'scope_path' : to_user.link_id |
150 } |
150 } |
151 |
151 |
152 key_fields = model_logic.notification.logic.getKeyFieldsFromFields(fields) |
152 key_name = model_logic.notification.logic.getKeyNameFromFields(fields) |
153 |
153 |
154 # create and put a new notification in the datastore |
154 # create and put a new notification in the datastore |
155 model_logic.notification.logic.updateOrCreateFromFields(fields, key_fields) |
155 model_logic.notification.logic.updateOrCreateFromKeyName(fields, key_name) |
156 |
156 |
157 |
157 |
158 def sendNewNotificationMessage(notification_entity): |
158 def sendNewNotificationMessage(notification_entity): |
159 """Sends an email to a user about a new notification. |
159 """Sends an email to a user about a new notification. |
160 |
160 |