[GeoNode-users] How to modify GeoNode's notification system?

Seno Adiwicaksono senoadiw at gmail.com
Mon Sep 7 06:35:09 PDT 2015

Hi Simone,

That did the trick. Just excluded 'layer_created' in
notification_post_save_resource(). Thanks again!



On Mon, Sep 7, 2015 at 7:35 PM, Simone Dalmasso <simone.dalmasso at gmail.com>

> Hi, here should be the code
> https://github.com/GeoNode/geonode/blob/master/geonode/social/signals.py#L205,
> hope it helps
> 2015-09-07 14:25 GMT+02:00 Seno Adiwicaksono <senoadiw at gmail.com>:
>> Dear all,
>> I have a specific use case with regards the django-notification used in
>> GeoNode. The requirements are to only send a layer_created notice to
>> specific group managers. The group managers will then review and publish
>> the uploaded layer. I put a call to notification.send(managers,
>> 'layer_created', notif_ctx) after a new layer object is saved, which then
>> sends the layer_created email to the managers. However they receive 2
>> layer_created emails. I suppose the first one is from my manual call and
>> the second one is because the managers are subscribed to layer_created in
>> the notification settings. I then uncheck the setting and tried uploading
>> another layer expecting to receive only 1 email this time, however none was
>> received. I enabled the settings again and 2 emails were delivered. I find
>> it strange that the saved settings would also affect my manual call.
>> So my question is where in GeoNode's code can I look to disable sending
>> the 2nd email?
>> Thanks,
>> SN
>> _______________________________________________
>> geonode-users mailing list
>> geonode-users at lists.osgeo.org
>> http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users
> --
> Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20150907/62adad3d/attachment.html>

More information about the geonode-users mailing list