Re: [master 10/15] dispatch: fix remaining places using the old dispatch interface.

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

 



On Mon, May 16, 2011 at 01:47:09PM +0200, Ales Kozumplik wrote:
> dispatch.skipStep("step", skip=0) is
> dispatch.request_step("step") now and can not be unskipped again.
> 
> dispatch.stepInSkipList is dispatch.step_disabled and there's a function
> for the inverse check: dispatch.step_enabled.
> ---
>  anaconda                           |    2 +-
>  pyanaconda/dispatch.py             |    4 ++--
>  pyanaconda/gui.py                  |    2 +-
>  pyanaconda/installclass.py         |    2 +-
>  pyanaconda/iw/autopart_type.py     |    4 ++--
>  pyanaconda/iw/task_gui.py          |    4 ++--
>  pyanaconda/kickstart.py            |    2 +-
>  pyanaconda/storage/__init__.py     |    2 +-
>  pyanaconda/text.py                 |    2 +-
>  pyanaconda/textw/partition_text.py |    2 +-
>  pyanaconda/upgrade.py              |    4 ++--
>  11 files changed, 15 insertions(+), 15 deletions(-)



> diff --git a/pyanaconda/iw/autopart_type.py b/pyanaconda/iw/autopart_type.py
> index 2ca0013..8a02f82 100644
> --- a/pyanaconda/iw/autopart_type.py
> +++ b/pyanaconda/iw/autopart_type.py
> @@ -184,8 +184,8 @@ class PartitionTypeWindow(InstallWindow):
>              elif self.buttonGroup.getCurrent() == "freespace":
>                  self.storage.config.clearPartType = CLEARPART_TYPE_NONE
>  
> -            self.dispatch.skipStep("autopartitionexecute", skip = 0)
> -            self.dispatch.skipStep("cleardiskssel", skip = 0)
> +            self.dispatch.request_step("autopartitionexecute")
> +            self.dispatch.request_step("cleardiskssel")

Couldn't this be:

self.dispatch.request_step("autopartitionexecute", "cleardiskssel")

Or were you aiming for a 1:1 relationship when converting things?

-- 
Brian C. Lane | Anaconda Team | IRC: bcl #anaconda | Port Orchard, WA (PST8PDT)

Attachment: pgp18l5uaXAlY.pgp
Description: PGP signature

_______________________________________________
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