Exemplo n.º 1
0
def setup_special_workspaces():
    Workspace.objects.filter(pk=RIVERLINE_WORKSPACE_ID).delete()
    workspace = Workspace(id=RIVERLINE_WORKSPACE_ID, name="Riviercenterlijnen")
    workspace.save()
    WorkspaceItem.objects.filter(pk=RIVERLINE_WORKSPACE_ITEM_ID).delete()
    workspace_item = WorkspaceItem(id=RIVERLINE_WORKSPACE_ITEM_ID,
                                   adapter_class='adapter_rijnmond_riverlines',
                                   workspace=workspace)
    workspace_item.save()
    logger.info("Added special workspace for rijnmond riverlines.")
def setup_special_workspaces():
    Workspace.objects.filter(pk=RIVERLINE_WORKSPACE_ID).delete()
    workspace = Workspace(
        id=RIVERLINE_WORKSPACE_ID,
        name="Riviercenterlijnen")
    workspace.save()
    WorkspaceItem.objects.filter(pk=RIVERLINE_WORKSPACE_ITEM_ID).delete()
    workspace_item = WorkspaceItem(
        id=RIVERLINE_WORKSPACE_ITEM_ID,
        adapter_class='adapter_rijnmond_riverlines',
        workspace=workspace)
    workspace_item.save()
    logger.info("Added special workspace for rijnmond riverlines.")
def setup_special_workspaces():
    Workspace.objects.filter(pk=SEGMENT_WORKSPACE_ID).delete()
    workspace = Workspace(
        id=SEGMENT_WORKSPACE_ID,
        name="Riviersegmenten")
    workspace.save()
    WorkspaceItem.objects.filter(pk=SEGMENT_WORKSPACE_ITEM_ID).delete()
    workspace_item = WorkspaceItem(
        id=SEGMENT_WORKSPACE_ITEM_ID,
        adapter_class='adapter_rijnmond_segments',
        workspace=workspace)
    workspace_item.save()
    logger.info("Added special workspace for rijnmond segments.")