def catalogLayer_update_handler(sender, **kwargs): new_catalogLayer = kwargs["instance"] if new_catalogLayer.id: try: catalogLayer = CatalogLayer.objects.get(pk=new_catalogLayer.id) except CatalogLayer.DoesNotExist: return shape_utils._delete_layer_postgis(catalogLayer.tableschema, catalogLayer.tablename) shape_utils._remove_layer_geoserver(catalogLayer)
def catalogLayer_update_handler(sender, **kwargs): new_catalogLayer = kwargs['instance'] if new_catalogLayer.id: try: catalogLayer = CatalogLayer.objects.get(pk=new_catalogLayer.id) except CatalogLayer.DoesNotExist: return shape_utils._delete_layer_postgis(catalogLayer.tableschema, catalogLayer.tablename) shape_utils._remove_layer_geoserver(catalogLayer)
def cataloglayer_delete_handler(sender, **kwargs): catalogLayer = kwargs["instance"] shape_utils._delete_layer_postgis(catalogLayer.tableschema, catalogLayer.tablename) shape_utils._remove_layer_geoserver(catalogLayer)
def cataloglayer_delete_handler(sender, **kwargs): catalogLayer = kwargs['instance'] shape_utils._delete_layer_postgis(catalogLayer.tableschema, catalogLayer.tablename) shape_utils._remove_layer_geoserver(catalogLayer)