Second version (squashed) of TUI patch

Jesse Keating jkeating at redhat.com
Fri Aug 10 18:02:13 UTC 2012


On 08/10/2012 07:11 AM, Martin Sivak wrote:
> +class TUISpoke(TUIObject, tui.Widget, Spoke):
> +    """Base TUI Spoke class implementing the pyanaconda.ui.common.Spoke API.
> +    It also acts as a Widget so we can easily add it to Hub, where is shows
> +    as a summary box with title, description and completed checkbox.
> +
> +    :param title: title of this spoke
> +    :type title: unicode
> +
> +    :param category: category this spoke belongs to
> +    :type category: string
> +    """
> +
> +    title = u"Default spoke title"
> +    category = u""
> +
> +    def __init__(self, app, data, storage, payload, instclass):
> +        TUIObject.__init__(self, app, data)
> +        tui.Widget.__init__(self)
> +        Spoke.__init__(self, data, storage, payload, instclass)
> +
> +    @property
> +    def status(self):
> +        return "testing status..."

Couple lines in here could be translated.  I can fix those up.

-- 
Jesse Keating
Fedora -- FreedomĀ² is a feature!


More information about the anaconda-patches mailing list