本文整理汇总了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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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
示例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