app/soc/logic/helper/notifications.py
changeset 1512 97c4a718d6f4
parent 1511 3342ce7a495c
child 1533 50fb3a9b6615
--- a/app/soc/logic/helper/notifications.py	Thu Feb 26 16:48:02 2009 +0000
+++ b/app/soc/logic/helper/notifications.py	Thu Feb 26 16:49:06 2009 +0000
@@ -149,10 +149,10 @@
       'scope_path' : to_user.link_id
   }
 
-  key_fields = model_logic.notification.logic.getKeyFieldsFromFields(fields)
+  key_name = model_logic.notification.logic.getKeyNameFromFields(fields)
 
   # create and put a new notification in the datastore
-  model_logic.notification.logic.updateOrCreateFromFields(fields, key_fields)
+  model_logic.notification.logic.updateOrCreateFromKeyName(fields, key_name)
 
 
 def sendNewNotificationMessage(notification_entity):