<div dir="ltr">Hi, you can use:<div>from geonode.layers.models import Layer</div><div><br></div><div>Layer.objects.filter(typename='geonode:layername').exists()</div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-27 16:21 GMT+02:00 Kevin Côté <span dir="ltr"><<a href="mailto:Kevin.Cote2@usherbrooke.ca" target="_blank">Kevin.Cote2@usherbrooke.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><u></u>
<div style="font-size:10pt;font-family:Verdana,Geneva,sans-serif">
<p> </p>
<p>Hi,</p>
<p>I've built a script using Selenium to automatically upload shapefiles into GeoNode. After the upload has been started, I want to be able to check if the layer has been correctly added.</p>
<p>What you guys think is the best way to check the presence of the layer into GeoNode (using Python)?</p>
<p> </p>
<p>Thanks</p>
<p> </p>
<div> </div>
</div>
<br>_______________________________________________<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/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>