diff options
| author | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-11 15:18:10 +0100 |
|---|---|---|
| committer | Ulf Magnusson <ulfalizer@gmail.com> | 2012-12-11 15:18:10 +0100 |
| commit | e32946d785274c4d33b63a7748ca6e1f733de331 (patch) | |
| tree | 44c407fa95c768a58d3e0cccc12737be7483dc32 /examples/allyesconfig.py | |
| parent | 906a1d119152f70268264c632b3c8193e476b720 (diff) | |
Rename APIs to be more consistent and intuitive.
Diffstat (limited to 'examples/allyesconfig.py')
| -rw-r--r-- | examples/allyesconfig.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/allyesconfig.py b/examples/allyesconfig.py index aa1d58b..1281015 100644 --- a/examples/allyesconfig.py +++ b/examples/allyesconfig.py @@ -34,8 +34,8 @@ while not done: # See corresponding comment for allnoconfig implementation if upper_bound is not None and \ - kconfiglib.tri_less(sym.calc_value(), upper_bound): - sym.set_value(upper_bound) + kconfiglib.tri_less(sym.get_value(), upper_bound): + sym.set_user_value(upper_bound) done = False # Handle symbols within choices @@ -48,7 +48,7 @@ while not done: selection = choice.get_selection_from_defaults() if selection is not None and \ selection is not choice.get_user_selection(): - selection.set_value("y") + selection.set_user_value("y") done = False # Handle choices whose visibility only allow them to be in "m" mode. @@ -57,9 +57,9 @@ while not done: elif choice.get_visibility() == "m": for sym in choice.get_actual_items(): - if sym.calc_value() != "m" and \ + if sym.get_value() != "m" and \ sym.get_upper_bound() != "n": - sym.set_value("m") + sym.set_user_value("m") done = False conf.write_config(".config") |
