'Puts the defaults into the settings dictionary for a given connection where no settings is provided.'

def ensure_defaults(self, alias):

    try:
        server = self.servers[alias]
    except KeyError:
        raise ServerDoesNotExist(("The    server    %s    doesn't    exist" % alias))
    server.setdefault('BACKEND', 'geonode.geoserver')
    server.setdefault('LOCATION', 'http://localhost:8080/geoserver/')
    server.setdefault('USER', 'admin')
    server.setdefault('PASSWORD', 'geoserver')
    server.setdefault('DATASTORE', str())
    server.setdefault('GEOGIG_DATASTORE_DIR', str())
    for option in ['MAPFISH_PRINT_ENABLED', 'PRINT_NG_ENABLED', 'GEONODE_SECURITY_ENABLED', 'BACKEND_WRITE_ENABLED']:
        server.setdefault(option, True)
    for option in ['GEOGIG_ENABLED', 'WMST_ENABLED', 'WPS_ENABLED']:
        server.setdefault(option, False)
