Displaying 1 result from an estimated 1 matches for "var_check_with_default".
2010 Nov 05
3
Unable to create (and keep) guest
...crash = ''restart''
# Debian Installer specific variables
def check_bool(name, value):
value = str(value).lower()
if value in (''t'', ''tr'', ''tru'', ''true''):
return True
return False
global var_check_with_default
def var_check_with_default(default, var, val):
if val:
return val
return default
xm_vars.var(''install'', use=''Install Debian, default: false'', check=check_bool)
xm_vars.var("install-method",
use=''Installation method...