Could you make these two separate bugs, please?  I expect it's quite
likely that we might fix these in separate changes, so they should be
tracked independently.

1)
For a first cut, I'd suggest doing this by implementing the "plugin_skip_page" 
method on the appropriate PluginUI subclasses.  You can have them check debconf 
preseeding (e.g. ubiquity/skip/prepare) for whether to do this; in fact, it 
might even make sense to have a default implementation of plugin_skip_page on 
PluginUI itself that looks up a debconf template based on the page name.

It may be that in some cases this will turn out not to work, for example
if there's some specific reason for the plugin's filtered command to run
even when it's been entirely preseeded.  In that case, get in touch with
me and we can talk through doing something more complex related to
automatic mode.

2)
Preseeding ubiquity/only-show-installable-languages to true may turn out to be 
enough for you.  If it isn't, I suggest looking at how that's implemented 
(start at ubiquity/plugins/ubi-language.py:Page.run and also see 
ubiquity/i18n.py:get_languages) and doing similar filtering based on a new 
preseedable debconf template that lists the language codes that should be 
displayed.

** Changed in: ubiquity (Ubuntu)
       Status: Confirmed => Triaged

** Changed in: ubiquity (Ubuntu)
   Importance: Undecided => Wishlist

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1100681

Title:
  skip a step you want, and reduce the language selection

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/1100681/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to