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


Python KickstartCommand.__str__方法代码示例

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


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

示例1: __str__

# 需要导入模块: from pykickstart.base import KickstartCommand [as 别名]
# 或者: from pykickstart.base.KickstartCommand import __str__ [as 别名]
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.seen:
            retval += "# Use network installation\nurl --url=\"%s\"\n" % self.url

        return retval
开发者ID:cathywife,项目名称:pykickstart,代码行数:9,代码来源:url.py

示例2: __str__

# 需要导入模块: from pykickstart.base import KickstartCommand [as 别名]
# 或者: from pykickstart.base.KickstartCommand import __str__ [as 别名]
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.deviceprobe != "":
            retval += "deviceprobe %s\n" % self.deviceprobe

        return retval
开发者ID:cathywife,项目名称:pykickstart,代码行数:9,代码来源:deviceprobe.py

示例3: __str__

# 需要导入模块: from pykickstart.base import KickstartCommand [as 别名]
# 或者: from pykickstart.base.KickstartCommand import __str__ [as 别名]
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.unsupported_hardware:
            retval += "unsupported_hardware\n"

        return retval
开发者ID:autotune,项目名称:pykickstart,代码行数:9,代码来源:unsupported_hardware.py

示例4: __str__

# 需要导入模块: from pykickstart.base import KickstartCommand [as 别名]
# 或者: from pykickstart.base.KickstartCommand import __str__ [as 别名]
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.interactive:
            retval += "# Use interactive kickstart installation method\ninteractive\n"

        return retval
开发者ID:autotune,项目名称:pykickstart,代码行数:9,代码来源:interactive.py

示例5: __str__

# 需要导入模块: from pykickstart.base import KickstartCommand [as 别名]
# 或者: from pykickstart.base.KickstartCommand import __str__ [as 别名]
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.password != "":
            retval += "# Root password\nrootpw%s %s\n" % (self._getArgsAsStr(), self.password)

        return retval
开发者ID:tradej,项目名称:pykickstart-old,代码行数:9,代码来源:rootpw.py

示例6: __str__

# 需要导入模块: from pykickstart.base import KickstartCommand [as 别名]
# 或者: from pykickstart.base.KickstartCommand import __str__ [as 别名]
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.check:
            retval += "lilocheck\n"

        return retval
开发者ID:KevinMGranger,项目名称:pykickstart,代码行数:9,代码来源:lilocheck.py

示例7: __str__

# 需要导入模块: from pykickstart.base import KickstartCommand [as 别名]
# 或者: from pykickstart.base.KickstartCommand import __str__ [as 别名]
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.autopart:
            retval += "autopart\n"

        return retval
开发者ID:KevinMGranger,项目名称:pykickstart,代码行数:9,代码来源:autopart.py

示例8: __str__

# 需要导入模块: from pykickstart.base import KickstartCommand [as 别名]
# 或者: from pykickstart.base.KickstartCommand import __str__ [as 别名]
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.zerombr:
            retval += "# Clear the Master Boot Record\nzerombr\n"

        return retval
开发者ID:tradej,项目名称:pykickstart-old,代码行数:9,代码来源:zerombr.py

示例9: __str__

# 需要导入模块: from pykickstart.base import KickstartCommand [as 别名]
# 或者: from pykickstart.base.KickstartCommand import __str__ [as 别名]
    def __str__(self):
        retval = KickstartCommand.__str__(self)
        if not self.seen:
            return retval

        retval += "# Use NFS installation media\nnfs --server=%s --dir=%s\n" % (self.server, self.dir)
        return retval
开发者ID:cathywife,项目名称:pykickstart,代码行数:9,代码来源:nfs.py

示例10: __str__

# 需要导入模块: from pykickstart.base import KickstartCommand [as 别名]
# 或者: from pykickstart.base.KickstartCommand import __str__ [as 别名]
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.lang != "":
            retval += "# System language\nlang %s\n" % self.lang

        return retval
开发者ID:KevinMGranger,项目名称:pykickstart,代码行数:9,代码来源:lang.py

示例11: __str__

# 需要导入模块: from pykickstart.base import KickstartCommand [as 别名]
# 或者: from pykickstart.base.KickstartCommand import __str__ [as 别名]
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.keyboard:
            retval += "# System keyboard\nkeyboard %s\n" % self.keyboard

        return retval
开发者ID:piyush1911,项目名称:pykickstart,代码行数:9,代码来源:keyboard.py

示例12: __str__

# 需要导入模块: from pykickstart.base import KickstartCommand [as 别名]
# 或者: from pykickstart.base.KickstartCommand import __str__ [as 别名]
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.ignoredisk:
            retval += "ignoredisk --drives=%s\n" % ",".join(self.ignoredisk)

        return retval
开发者ID:atodorov,项目名称:pykickstart,代码行数:9,代码来源:ignoredisk.py

示例13: __str__

# 需要导入模块: from pykickstart.base import KickstartCommand [as 别名]
# 或者: from pykickstart.base.KickstartCommand import __str__ [as 别名]
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.skipx:
            retval += "# Do not configure the X Window System\nskipx\n"

        return retval
开发者ID:KevinMGranger,项目名称:pykickstart,代码行数:9,代码来源:skipx.py

示例14: __str__

# 需要导入模块: from pykickstart.base import KickstartCommand [as 别名]
# 或者: from pykickstart.base.KickstartCommand import __str__ [as 别名]
    def __str__(self):
        retval = KickstartCommand.__str__(self)

        if self.card != "":
            retval += " --card=%s" % self.card
        if self.defaultdesktop != "":
            retval += " --defaultdesktop=%s" % self.defaultdesktop
        if self.depth != 0:
            retval += " --depth=%d" % self.depth
        if self.hsync != "":
            retval += " --hsync=%s" % self.hsync
        if self.monitor != "":
            retval += " --monitor=%s" % self.monitor
        if self.noProbe:
            retval += " --noprobe"
        if self.resolution != "":
            retval += " --resolution=%s" % self.resolution
        if self.server != "":
            retval += " --server=%s" % self.server
        if self.startX:
            retval += " --startxonboot"
        if self.videoRam != "":
            retval += " --videoram=%s" % self.videoRam
        if self.vsync != "":
            retval += " --vsync=%s" % self.vsync

        if retval != "":
            retval = "# X Window System configuration information\nxconfig %s\n" % retval

        return retval
开发者ID:nandakishore1006,项目名称:pykickstart,代码行数:32,代码来源:xconfig.py

示例15: __str__

# 需要导入模块: from pykickstart.base import KickstartCommand [as 别名]
# 或者: from pykickstart.base.KickstartCommand import __str__ [as 别名]
    def __str__(self):
        retval = KickstartCommand.__str__(self)
        if not self.seen:
            return retval

        retval += "# Use CDROM installation media\ncdrom\n"
        return retval
开发者ID:atodorov,项目名称:pykickstart,代码行数:9,代码来源:cdrom.py


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