示例#1
0
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)
示例#2
0
文件: layers.py 项目: filosi/pybab
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)
示例#3
0
def cataloglayer_delete_handler(sender, **kwargs):
    catalogLayer = kwargs["instance"]
    shape_utils._delete_layer_postgis(catalogLayer.tableschema, catalogLayer.tablename)
    shape_utils._remove_layer_geoserver(catalogLayer)
示例#4
0
文件: layers.py 项目: filosi/pybab
def cataloglayer_delete_handler(sender, **kwargs):
    catalogLayer = kwargs['instance']
    shape_utils._delete_layer_postgis(catalogLayer.tableschema,
                                      catalogLayer.tablename)
    shape_utils._remove_layer_geoserver(catalogLayer)