Re: Potential deprecation in RHEL 7.3 ADDON API

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2016-03-30 at 08:36 -0400, Chris Lumens wrote:
> > 
> > This PR will cause that all existing addons to get deprecation
> > warning
> > message. This includes our OSCAP and KDUMP addons.
> > 
> > The change is really small. You only need to change two lines of
> > code.
> > I'm going to create PR for our addons when this PR receive ACK.
> > 
> > This change happens on master and it will be also in RHEL 7.3 .
> > I want to give you notification about this change before it happens
> > by
> > this mail. If I missed something or you don't want this change
> > please
> > write comments to PR or reply to this mail.
> You can avoid having to deal with deprecation warnings and all that
> if
> you instead define execute to also take *args and **kwargs, and then
> pass payload to it as a kwarg everywhere.  Addons that don't do that
> just won't have access to the payload, but that's their problem.
> 
> - Chris
> 

I think what wrote mkolman is accurate. As a bonus when we want to do
this we want to do this everywhere for addons. If am I not mistaken it
will be on 6 places only on the addon part (GUI, TUI, KS sections) and
every call on these methods in the Anaconda.

If we will go for for **kwargs/*args solution then I think we should
create new methods execute and setup to distinguish from the old code.

Jirka

> _______________________________________________
> Anaconda-devel-list mailing list
> Anaconda-devel-list@xxxxxxxxxx
> https://www.redhat.com/mailman/listinfo/anaconda-devel-list

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list




[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux