当前位置: 首页>>代码示例>>Python>>正文


Python BaseInstallClass.setSteps方法代码示例

本文整理汇总了Python中installclass.BaseInstallClass.setSteps方法的典型用法代码示例。如果您正苦于以下问题:Python BaseInstallClass.setSteps方法的具体用法?Python BaseInstallClass.setSteps怎么用?Python BaseInstallClass.setSteps使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在installclass.BaseInstallClass的用法示例。


在下文中一共展示了BaseInstallClass.setSteps方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。

示例1: setSteps

# 需要导入模块: from installclass import BaseInstallClass [as 别名]
# 或者: from installclass.BaseInstallClass import setSteps [as 别名]
 def setSteps(self, anaconda):
     BaseInstallClass.setSteps(self, anaconda)
     anaconda.dispatch.skipStep("partition")
     anaconda.dispatch.skipStep("betanag",permanent=1)
     if anaconda.id.displayMode == 'g':
         anaconda.dispatch.skipStep("tasksel", skip = 1, permanent=1)
         anaconda.dispatch.skipStep("group-selection", skip = 1, permanent=1)
开发者ID:AsherBond,项目名称:silvereye,代码行数:9,代码来源:generic.py

示例2: setSteps

# 需要导入模块: from installclass import BaseInstallClass [as 别名]
# 或者: from installclass.BaseInstallClass import setSteps [as 别名]
	def setSteps(self, anaconda):
		BaseInstallClass.setSteps(self, anaconda)

		os.system('touch /tmp/in-setSteps')

		if os.path.exists('/tmp/stack-skip-welcome'):
			anaconda.dispatch.skipStep("welcome", skip = 1)
		else:
			anaconda.dispatch.skipStep("welcome", skip = 0)

		#
		# skip the following 'graphical' screens
		#
		anaconda.dispatch.skipStep("parttype", skip = 1)
		anaconda.dispatch.skipStep("filtertype", skip = 1)
		anaconda.dispatch.skipStep("cleardiskssel", skip = 1)
		anaconda.dispatch.skipStep("bootloader", permanent = 1)
		anaconda.dispatch.skipStep("timezone", permanent = 1)
		anaconda.dispatch.skipStep("accounts", permanent = 1)
		anaconda.dispatch.skipStep("tasksel", permanent = 1)

		if os.path.exists('/tmp/manual-partitioning'):
			anaconda.dispatch.skipStep("partition", skip = 0)
			anaconda.dispatch.skipStep("autopartitionexecute",
				skip = 1)
		else:
			anaconda.dispatch.skipStep("partition", skip = 1)
			anaconda.dispatch.skipStep("autopartitionexecute",
				skip = 0)

		anaconda.dispatch.skipStep("group-selection", permanent = 1)
		anaconda.dispatch.skipStep("complete", permanent = 1)
开发者ID:StackIQ,项目名称:stacki,代码行数:34,代码来源:base_rocks_installclass.py

示例3: setSteps

# 需要导入模块: from installclass import BaseInstallClass [as 别名]
# 或者: from installclass.BaseInstallClass import setSteps [as 别名]
    def setSteps(self, anaconda):
        BaseInstallClass.setSteps(self, anaconda)

        if os.path.exists("/tmp/rocks-skip-welcome"):
            anaconda.dispatch.skipStep("welcome", skip=1)
        else:
            anaconda.dispatch.skipStep("welcome", skip=0)

            #
            # skip the following 'graphical' screens
            #
        anaconda.dispatch.skipStep("parttype", skip=1)
        anaconda.dispatch.skipStep("filtertype", skip=1)
        anaconda.dispatch.skipStep("cleardiskssel", skip=1)
        anaconda.dispatch.skipStep("bootloader", permanent=1)
        anaconda.dispatch.skipStep("timezone", permanent=1)
        anaconda.dispatch.skipStep("accounts", permanent=1)
        anaconda.dispatch.skipStep("tasksel", permanent=1)

        if os.path.exists("/tmp/manual-partitioning"):
            anaconda.dispatch.skipStep("partition", skip=0)
            anaconda.dispatch.skipStep("autopartitionexecute", skip=1)
        else:
            anaconda.dispatch.skipStep("partition", skip=1)
            anaconda.dispatch.skipStep("autopartitionexecute", skip=0)

        anaconda.dispatch.skipStep("group-selection", permanent=1)
        anaconda.dispatch.skipStep("complete", permanent=1)

        # from gui import stepToClass
        from dispatch import installSteps
        from packages import turnOnFilesystems
        from rocks_getrolls import RocksGetRolls

        #
        # need to move the making of the file systems up before
        # we download the rolls.
        #
        # rocks doesn't use the 'timezone' or 'accounts' screens,
        # so we'll override them with our functions
        #
        # index = 0
        # for key in installSteps:
        # if key[0] == "timezone":
        # break
        # index = index + 1

        # installSteps[index] = ("rocksenablefilesystems",
        # turnOnFilesystems,)
        # anaconda.dispatch.skipStep("rocksenablefilesystems", skip = 0)
        # anaconda.dispatch.skipStep("enablefilesystems", skip = 1)

        index = 0
        for key in installSteps:
            if key[0] == "upgbootloader":
                break
            index = index + 1

        installSteps[index] = ("downloadrolls", RocksGetRolls)
        anaconda.dispatch.skipStep("downloadrolls", skip=0)
开发者ID:rocksclusters-attic,项目名称:base,代码行数:62,代码来源:base_rocks_installclass.py

示例4: setSteps

# 需要导入模块: from installclass import BaseInstallClass [as 别名]
# 或者: from installclass.BaseInstallClass import setSteps [as 别名]
    def setSteps(self, dispatch):
	BaseInstallClass.setSteps(self, dispatch);
	dispatch.skipStep("partition")
	dispatch.skipStep("regkey", skip = 1)        
开发者ID:abiquo-rpms,项目名称:anaconda-ee,代码行数:6,代码来源:rhel.py

示例5: setSteps

# 需要导入模块: from installclass import BaseInstallClass [as 别名]
# 或者: from installclass.BaseInstallClass import setSteps [as 别名]
 def setSteps(self, anaconda):
     BaseInstallClass.setSteps(self, anaconda)
     anaconda.dispatch.skipStep("welcome", skip = 1)
开发者ID:Rogentos,项目名称:rogentos-anaconda,代码行数:5,代码来源:lxde.py

示例6: setSteps

# 需要导入模块: from installclass import BaseInstallClass [as 别名]
# 或者: from installclass.BaseInstallClass import setSteps [as 别名]
    def setSteps(self, dispatch):
	BaseInstallClass.setSteps(self, dispatch);
	dispatch.skipStep("partition")
        dispatch.skipStep("desktopchoice", skip = 0)
        dispatch.skipStep("package-selection", skip = 1)
开发者ID:abelboldu,项目名称:anaconda-ee,代码行数:7,代码来源:personal_desktop.py

示例7: setSteps

# 需要导入模块: from installclass import BaseInstallClass [as 别名]
# 或者: from installclass.BaseInstallClass import setSteps [as 别名]
 def setSteps(self, anaconda):
     BaseInstallClass.setSteps(self, anaconda)
     anaconda.dispatch.skipStep("partition")
     anaconda.dispatch.skipStep("betanag",permanent=1)
开发者ID:274914765,项目名称:python,代码行数:6,代码来源:rhel.py

示例8: setSteps

# 需要导入模块: from installclass import BaseInstallClass [as 别名]
# 或者: from installclass.BaseInstallClass import setSteps [as 别名]
	def setSteps(self, dispatch):
		BaseInstallClass.setSteps(self, dispatch)

		if os.path.exists('/tmp/rocks-skip-welcome'):
			dispatch.skipStep("welcome", skip = 1)
		else:
			dispatch.skipStep("welcome", skip = 0)

		#
		# parttype is a graphical screen
		#
		dispatch.skipStep("parttype", skip = 1)

		dispatch.skipStep("partitiondone", skip = 0)

		#
		# bootloader is a graphical screen
		#
		dispatch.skipStep("bootloader", permanent = 1)

		dispatch.skipStep("partitionobjinit", skip = 0)

		if os.path.exists('/tmp/manual-partitioning'):
			dispatch.skipStep("partition", skip = 0)
			dispatch.skipStep("autopartitionexecute", skip = 1)
		else:
			dispatch.skipStep("partition", skip = 1)
			dispatch.skipStep("autopartitionexecute", skip = 0)

		dispatch.skipStep("group-selection", permanent = 1)
		dispatch.skipStep("confirminstall", permanent = 1)
		dispatch.skipStep("complete", permanent = 1)


		from gui import stepToClass
		from dispatch import installSteps
		from rocks_getrolls import RocksGetRolls
		from packages import turnOnFilesystems

		#
		# need to move the making of the file systems up before
		# we download the rolls.
		#
		# rocks doesn't use the 'timezone' or 'accounts' screens,
		# so we'll override them with our functions
		#
                index = 0
                for key in installSteps:
                        if key[0] == "timezone":
                                break
                        index = index + 1

                installSteps[index] = ("rocksenablefilesystems",
			turnOnFilesystems,)
		dispatch.skipStep("rocksenablefilesystems", skip = 0)
		dispatch.skipStep("enablefilesystems", skip = 1)

                index = 0
                for key in installSteps:
                        if key[0] == "accounts":
                                break
                        index = index + 1

                installSteps[index] = ("downloadrolls", RocksGetRolls,)
		dispatch.skipStep("downloadrolls", skip = 0)
开发者ID:rocksclusters,项目名称:base,代码行数:67,代码来源:base_rocks_installclass.py

示例9: setSteps

# 需要导入模块: from installclass import BaseInstallClass [as 别名]
# 或者: from installclass.BaseInstallClass import setSteps [as 别名]
 def setSteps(self, anaconda):
     BaseInstallClass.setSteps(self, anaconda)
     anaconda.dispatch.skipStep("partition")
开发者ID:abiquo,项目名称:anaconda-ee-el6,代码行数:5,代码来源:rhel.py

示例10: setSteps

# 需要导入模块: from installclass import BaseInstallClass [as 别名]
# 或者: from installclass.BaseInstallClass import setSteps [as 别名]
 def setSteps(self, dispatch):
     BaseInstallClass.setSteps(self, dispatch)
开发者ID:sergey-senozhatsky,项目名称:anaconda-11-vlan-support,代码行数:4,代码来源:server.py


注:本文中的installclass.BaseInstallClass.setSteps方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。