app/soc/logic/helper/notifications.py
changeset 1115 0a723ff3d27c
parent 1059 17221b578fe7
child 1138 18ef39338211
equal deleted inserted replaced
1114:65c8d1bfe94b 1115:0a723ff3d27c
   145       'scope' : to_user,
   145       'scope' : to_user,
   146       'link_id' :'t%i' % (time.time()),
   146       'link_id' :'t%i' % (time.time()),
   147       'scope_path' : to_user.link_id
   147       'scope_path' : to_user.link_id
   148   }
   148   }
   149 
   149 
   150   key_fields = model_logic.notification.logic.getKeyFieldsFromDict(fields)
   150   key_fields = model_logic.notification.logic.getKeyFieldsFromFields(fields)
   151 
   151 
   152   # create and put a new notification in the datastore
   152   # create and put a new notification in the datastore
   153   model_logic.notification.logic.updateOrCreateFromFields(fields, key_fields)
   153   model_logic.notification.logic.updateOrCreateFromFields(fields, key_fields)
   154 
   154 
   155 
   155