Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/examples/swiss.py
diff options
context:
space:
mode:
authorWerner Llácer <wllacer@gmail.com>2022-02-28 15:02:39 +0100
committerGitHub <noreply@github.com>2022-02-28 15:02:39 +0100
commitf06aabb4d4a50d3a8ab7c07bef8390f72b091293 (patch)
tree7b079611baeb58bdf0feb9b78a009ef0ee20623e /examples/swiss.py
parent391699497d0c15e7eb6a63a1369209f42f311b2c (diff)
enhacements to the menu infraestructure (#978)
* Correct definition of btrfs standard layout * Solve issue #936 * make ask_for_a_timezone as synonym to ask_timezone * Some refining in GeneralMenu secret is now a general function * Revert "Some refining in GeneralMenu" This reverts commit e6e131cb19795e0ddc169e897ae4df57a1c7f9fb. * Activate load of preset values in GeneralMenu Changed all select_functions definitions to the need of passing the preset value Corrected problems at ask_to_configure_network, and management of preset values added * minor glitches in menu processing, plus flake8 complains * Changes to ask_to_configure_network following @svartkanin code * select_language adapted to preset value. changes to the infraestructure to solve bugs * functions adapted for preset values * select_mirror_regions * select_locale_lang * select_locale_enc * ask_for_swap * Updated to preset values * ask_for_bootloader Won't use it * set_root_password() * Updated to preset values * ask_for_audio_selection * select_kernel * ask_for_a_timezone * Updated to use preset values * select_ntp * ask_ntp * ask_for_swap flake8 complains * Adapted to preset values * ask_additional_packages_to_install (from svartkanin) * ask_to_configure_network (adapted from svartkanin version) * Updated to preset values * ask_hostname * select_additional_repositories * bug in nic conversion _select_harddrives adapted to preset_menu
Diffstat (limited to 'examples/swiss.py')
-rw-r--r--examples/swiss.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/examples/swiss.py b/examples/swiss.py
index 9f3cf9dd..f60ff60f 100644
--- a/examples/swiss.py
+++ b/examples/swiss.py
@@ -156,26 +156,26 @@ class SetupMenu(archinstall.GeneralMenu):
self.set_option('archinstall-language',
archinstall.Selector(
_('Select Archinstall language'),
- lambda: self._select_archinstall_language('English'),
+ lambda x: self._select_archinstall_language('English'),
default='English',
enabled=True))
self.set_option('ntp',
archinstall.Selector(
'Activate NTP',
- lambda: select_activate_NTP(),
+ lambda x: select_activate_NTP(),
default='Y',
enabled=True))
self.set_option('mode',
archinstall.Selector(
'Excution mode',
- lambda: select_mode(),
+ lambda x : select_mode(),
default='full',
enabled=True))
for item in ['LC_ALL','LC_CTYPE','LC_NUMERIC','LC_TIME','LC_MESSAGES','LC_COLLATE']:
self.set_option(item,
archinstall.Selector(
f'{get_locale_mode_text(item)} locale',
- lambda item=item: select_installed_locale(item), # the parmeter is needed for the lambda in the loop
+ lambda x,item=item: select_installed_locale(item), # the parmeter is needed for the lambda in the loop
enabled=True,
dependencies_not=['LC_ALL'] if item != 'LC_ALL' else []))
self.option('LC_ALL').set_enabled(True)