[zypp-devel] ui::Selectable in pkg-bindings
Hi all, I'd like to switch pkg-bindings internal implementation to ui::Selectable, this change will solve some problems related to selection of the right solvable and will unify behavior of pkg-bindings with packager widgets and zypper. There is one major problem with Selectables: they exclusively work on ResStatus::USER level which is OK for yast UI but not usable for pkg-bindigs which use ResStatus::APPL_HIGH, ResStatus::USER is used only in some cases. The reason is that changes made by user have higher priority than changes done by yast scripts, so user is able to override yast changes if it's needed. It seems that the ui::Selectable API must be enhanced, any idea? -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Wed, Aug 13, Ladislav Slezak wrote:
The reason is that changes made by user have higher priority than changes done by yast scripts, so user is able to override yast changes if it's needed.
It seems that the ui::Selectable API must be enhanced, any idea?
I can introduce a causer argumet to the status mainp. methods, and let it default to ResStatus::USER. So the UIs should not be affected. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
Michael Andres napsal(a):
On Wed, Aug 13, Ladislav Slezak wrote:
The reason is that changes made by user have higher priority than changes done by yast scripts, so user is able to override yast changes if it's needed.
It seems that the ui::Selectable API must be enhanced, any idea?
I can introduce a causer argumet to the status mainp. methods, and let it default to ResStatus::USER. So the UIs should not be affected.
Yeah, that's a good idea! Please do that ASAP so I can switch pkg-bindings to ui::Selectables before Alpha2. Thanks! -- Best Regards Ladislav Slezák Yast Developer ------------------------------------------------------------------------ SUSE LINUX, s.r.o. e-mail: lslezak@suse.cz Lihovarská 1060/12 tel: +420 284 028 960 190 00 Prague 9 fax: +420 284 028 951 Czech Republic http://www.suse.cz/ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
Ladislav Slezak wrote:
Yeah, that's a good idea! Please do that ASAP so I can switch pkg-bindings to ui::Selectables before Alpha2. Thanks!
There are two other things that we will need in package bindings: * support for reloginSuggested flag ( analog to rebootSuggested and restartSuggested, previouly known as reboot_needed and affects_pkg_mgr ) * Service management Duncan -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Wed, Aug 13, Ladislav Slezak wrote:
Michael Andres napsal(a):
On Wed, Aug 13, Ladislav Slezak wrote:
The reason is that changes made by user have higher priority than changes done by yast scripts, so user is able to override yast changes if it's needed.
It seems that the ui::Selectable API must be enhanced, any idea?
I can introduce a causer argumet to the status mainp. methods, and let it default to ResStatus::USER. So the UIs should not be affected.
Yeah, that's a good idea! Please do that ASAP so I can switch pkg-bindings to ui::Selectables before Alpha2. Thanks!
The API is in libzypp-5.5.0, so you can start changing the bindings. Internally it still uses USER. I'll fix this tomorrow. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
On Wed, Aug 13, Michael Andres wrote:
On Wed, Aug 13, Ladislav Slezak wrote:
Michael Andres napsal(a):
On Wed, Aug 13, Ladislav Slezak wrote:
The reason is that changes made by user have higher priority than changes done by yast scripts, so user is able to override yast changes if it's needed.
It seems that the ui::Selectable API must be enhanced, any idea?
I can introduce a causer argumet to the status mainp. methods, and let it default to ResStatus::USER. So the UIs should not be affected.
Yeah, that's a good idea! Please do that ASAP so I can switch pkg-bindings to ui::Selectables before Alpha2. Thanks!
The API is in libzypp-5.5.0, so you can start changing the bindings.
Internally it still uses USER. I'll fix this tomorrow.
Should work with libzypp-5.6.0. In addition to 5.5.0 the Selectable::setCandidate method now also thkes a causer argument. -- cu, Michael Andres +------------------------------------------------------------------+ Key fingerprint = 2DFA 5D73 18B1 E7EF A862 27AC 3FB8 9E3A 27C6 B0E4 +------------------------------------------------------------------+ Michael Andres YaST Development ma@novell.com SUSE LINUX Products GmbH, GF: Markus Rex, HRB 16746 (AG Nuernberg) Maxfeldstrasse 5, D-90409 Nuernberg, Germany, ++49 (0)911 - 740 53-0 +------------------------------------------------------------------+ -- To unsubscribe, e-mail: zypp-devel+unsubscribe@opensuse.org For additional commands, e-mail: zypp-devel+help@opensuse.org
participants (3)
-
Duncan Mac-Vicar Prett
-
Ladislav Slezak
-
Michael Andres