<div dir="ltr">There's no docs on that but you can look at <a href="https://github.com/GeoNode/geonode/blob/master/geonode/templates/_permissions.html">https://github.com/GeoNode/geonode/blob/master/geonode/templates/_permissions.html</a>, <a href="https://github.com/GeoNode/geonode/blob/master/geonode/social/signals.py#L154">https://github.com/GeoNode/geonode/blob/master/geonode/social/signals.py#L154</a></div><div class="gmail_extra"><br><div class="gmail_quote">2015-09-24 14:04 GMT+02:00 Daniel Victoria <span dir="ltr"><<a href="mailto:daniel.victoria@gmail.com" target="_blank">daniel.victoria@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Simone, Seno,<br><br></div>Thanks for the info. We will try to implement the changes here. Is there some documentation showing which parts of the code needs to be changed?<br><br></div>Cheers<br></div>Daniel<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 24, 2015 at 6:58 AM, Simone Dalmasso <span dir="ltr"><<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks Seno,<div><br></div><div>just to add that the default anonymous permissions (and the checkbox behavior) can be controlled by these settings <a href="https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L401" target="_blank">https://github.com/GeoNode/geonode/blob/master/geonode/settings.py#L401</a></div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">2015-09-24 9:04 GMT+02:00 Seno Adiwicaksono <span dir="ltr"><<a href="mailto:senoadiw@gmail.com" target="_blank">senoadiw@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi Daniel,<br><br></div>I sort of got this flow working. What was done is to make sure that the approving group (call it GroupApproval) is given all the group permissions in the layer upload page, I set it through javascript to fill the permissions textbox with GroupApproval. Also it is key to make sure the Anyone (view and download) checkboxes are unchecked. Once the user has successfully uploaded the layer, an email notification is sent to members of GroupApproval. Since the Anyone view permission is unchecked, the layer will not show up in the layers list even though it's published. Then the GroupApproval member can visit the new layer from the link in the email, review it, and finally check the Anyone view and download permissions so it is accessible by the public.<br><br></div>Hope this helps!<br><br></div>Regards,<br><br></div>SN<br></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 24, 2015 at 1:19 PM, Simone Dalmasso <span dir="ltr"><<a href="mailto:simone.dalmasso@gmail.com" target="_blank">simone.dalmasso@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hi Daniel,<div>what you want to achieve cannot be done with standard GeoNode as, by default, a user that uploads data is also the owner and can publish and modify it. You would have to modify the standard permissions (easy setting), the UI to remove the public flags and not grant the "change_resourcebase_permissions" permission to the users that should not be able to publish.</div><div>Then you have to add the notifications system to the group you need for "layer_uploaded".</div><div><br></div><div>About the permissions, don't consider the ones in the "admin panel" as they contain also some django internals that we don't use. the GeoNode permissions are the ones listed in the permissions widget:</div><div><br></div><div><br></div></div><div class="gmail_extra"><div><div><br><div class="gmail_quote">2015-09-23 21:15 GMT+02:00 Daniel Victoria <span dir="ltr"><<a href="mailto:daniel.victoria@gmail.com" target="_blank">daniel.victoria@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi list,<br><br></div>We'd like to create some groups in GeoNode similar to what Seno describes bellow. One group that can upload data and fill the metadata but not make it public. And a second group that will review, correct the metadata and make it public. Is this done using only the group permissions? Or are there some other things that need to be changed?<br><br></div>Also, looking at the group permissions in the administration panel, I got lost. Is there some place that describes what each of the permissions is for? Some are quite self-describing but, what is the difference between:<br></div>a) can add layer vs. can add layer file<br></div>b) can add upload vs. can add upload file<br><div><div><br><div>Cheers<br></div><div>Daniel<br></div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Sep 7, 2015 at 9:25 AM, Seno Adiwicaksono <span dir="ltr"><<a href="mailto:senoadiw@gmail.com" target="_blank">senoadiw@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Dear all,<br><br></div>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.<br><br></div>So my question is where in GeoNode's code can I look to disable sending the 2nd email?<br><br></div><div>Thanks,<br><br></div><div>SN<br></div></div>
<br>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br></div></div></div></div></div></div></div>
<br>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br><br clear="all"><span class="HOEnZb"><font color="#888888"><div><br></div></font></span></div></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">-- <br><div>Simone </div>
</font></span></font></span></div><span class="HOEnZb"><font color="#888888">
<br>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/cgi-bin/mailman/listinfo/geonode-users</a><br>
<br></font></span></blockquote></div><span class="HOEnZb"><font color="#888888"><br></font></span></div><span class="HOEnZb"><font color="#888888">
</font></span></div></div></blockquote></div><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div></font></span></div></div><span class="HOEnZb"><font color="#888888"><span><font color="#888888">-- <br><div>Simone </div>
</font></span></font></span></div>
</blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature">Simone </div>
</div>