<div dir="ltr">Bella Simo,<div><br></div><div>we should have something that should help you, take a look at this function</div><div><a href="https://github.com/GeoNode/geonode/blob/master/geonode/geoserver/helpers.py#L740">https://github.com/GeoNode/geonode/blob/master/geonode/geoserver/helpers.py#L740</a>.<br></div><div><br></div><div>Let me know.</div><div><br></div><div>Ciao</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-01-05 17:07 GMT+01:00 simone balbo <span dir="ltr"><<a href="mailto:simone.blb@gmail.com" target="_blank">simone.blb@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>Hi list,</div><div><br></div><div>I found out that I have the 'default_style_id' field set to null for all my layers in GeoNode 2.4 (not sure how I end up with this, probably update_layers?).</div><div><br></div><div>Therefore I would like to write a script that for each layer reads the default style for the corresponding layer in geoserver and sets the correct id in GeoNode. </div><div>Does anyone have suggestion on which existing function can I take advantage of?</div><div><br></div><div>Thanks!</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Simone</div></font></span></div>
<br>______________________________<wbr>_________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org">geonode-users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">http://lists.osgeo.org/<wbr>mailman/listinfo/geonode-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature">Simone </div>
</div>