# Input and output routines. from time import sleep from YCPDeclarations import YCPDeclare import ycp from ycp import Term, Symbol, Path from ycp import y2internal, y2security, y2error, y2warning, y2milestone, y2debug ## # Set textdomain # import gettext gettext.install("geo-cluster") ycp.import_module("Progress") ycp.import_module("Report") ycp.import_module("Summary") ycp.import_module("Message") ## # Data was modified? # modified = False ## # proposal_valid = False ## # Write only, used during autoinstallation.
import gettext gettext.install("XXpkgXX") ycp.init_ui("qt") ## # <h3>Configuration of XXpkgXX</h3> # # The main () y2milestone("----------------------------------------") y2milestone("XXPkgXX module started") ycp.import_module("Progress") ycp.import_module("Report") ycp.import_module("Summary") ycp.import_module("XXPkgXX") ycp.import_module("CommandLine") #TODO import wizards cmdline_description = { "id" : "XXpkgXX", # Command line help text for the XXXpkgXX module "help" : _("Configuration of XXpkgXX"), "guihandler" : wizards.XXPkgXXSequence, "initialize" : ycp.XXPkgXX.Read,
# * # * $Id: complex.ycp 41350 2007-10-10 16:59:00Z dfiser $ # */ import ycp from ycp import Symbol, Term, Path from YCPDeclarations import YCPDeclare ## # Set textdomain # import gettext gettext.install("XXpkgXX") ycp.import_module("Label") ycp.import_module("Popup") ycp.import_module("Wizard") ycp.import_module("Wizard_hw") ycp.import_module("Confirm") ycp.import_module("UI") ycp.import_module("XXPkgXX") from helps import HELPS # include "XXpkgXX/helps.ycp"; # /** # * Return a modification status # * @return true if data was modified # */
# * ------------------------------------------------------------------------------ # */ # #/** # * File: include/XXpkgXX/wizards.ycp # * Package: Configuration of XXpkgXX # * Summary: Wizards definitions # * Authors: XXmaintainerXX <XXemailXX> # * # * $Id: wizards.ycp 27914 2006-02-13 14:32:08Z locilka $ # */ import ycp from ycp import Symbol, Path, Term ycp.import_module("Sequencer2") ycp.import_module("Wizard") ycp.import_module("UI") import complex import dialogs ## # Set textdomain # import gettext gettext.install("XXpkgXX") #/** # * Add a configuration of XXpkgXX
# Representation of the configuration of geo-cluster. # Input and output routines. from time import sleep from YCPDeclarations import YCPDeclare import ycp from ycp import Term, Symbol, Path from ycp import y2internal, y2security, y2error, y2warning, y2milestone, y2debug ## # Set textdomain # import gettext gettext.install("geo-cluster") ycp.import_module("Progress") ycp.import_module("Report") ycp.import_module("Summary") ycp.import_module("Message") ## # Data was modified? # modified = False ## # proposal_valid = False ## # Write only, used during autoinstallation.
# */ # #/** # * File: include/XXpkgXX/dialogs.ycp # * Package: Configuration of XXpkgXX # * Summary: Dialogs definitions # * Authors: XXmaintainerXX <XXemailXX> # * # * $Id: dialogs.ycp 27914 2006-02-13 14:32:08Z locilka $ # */ import ycp from ycp import Symbol, Term, Path from YCPDeclarations import YCPDeclare ycp.import_module("Label") ycp.import_module("Wizard") ycp.import_module("UI") ## # Set textdomain # import gettext gettext.install("XXpkgXX") from helps import HELPS import complex #/** # * Configure1 dialog # * @return dialog result
from ycp import import_module import_module('Sequencer') import_module('Wizard') import_module('UI') from ycp import Sequencer, Wizard, UI, Symbol, Code class UISequencer: def __init__(self, *cli_args): UISequencer.cli_args = cli_args UISequencer.itr = 0 @staticmethod def runner(): ret = UISequencer.funcs[UISequencer.itr](*(UISequencer.cli_args)) UISequencer.itr += 1 if type(ret) is tuple: data, ret = ret UISequencer.cli_args = (data, ) + UISequencer.cli_args return ret def run(self, funcs): UISequencer.funcs = funcs aliases = { 'run%d' % i: Code(UISequencer.runner) for i in range(0, len(UISequencer.funcs)) } sequence = { 'run%d' % i: { Symbol('abort'):