[GeoNode-users] Best way to check if a layer is stored in GeoNode ?

Simone Dalmasso simone.dalmasso at gmail.com
Wed Jul 27 08:03:14 PDT 2016


Hi, you can use:
from geonode.layers.models import Layer

Layer.objects.filter(typename='geonode:layername').exists()

2016-07-27 16:21 GMT+02:00 Kevin Côté <Kevin.Cote2 at usherbrooke.ca>:

>
>
> Hi,
>
> 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.
>
> What you guys think is the best way to check the presence of the layer
> into GeoNode (using Python)?
>
>
>
> Thanks
>
>
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geonode-users
>
>


-- 
Simone
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20160727/942e2083/attachment-0001.html>


More information about the geonode-users mailing list