本文整理汇总了Python中mmc.support.config.PluginConfig.setDefault方法的典型用法代码示例。如果您正苦于以下问题:Python PluginConfig.setDefault方法的具体用法?Python PluginConfig.setDefault怎么用?Python PluginConfig.setDefault使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mmc.support.config.PluginConfig
的用法示例。
在下文中一共展示了PluginConfig.setDefault方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: setDefault
# 需要导入模块: from mmc.support.config import PluginConfig [as 别名]
# 或者: from mmc.support.config.PluginConfig import setDefault [as 别名]
def setDefault(self):
PluginConfig.setDefault(self)
self.squidReload = "/etc/init.d/squid reload"
self.squidUser = "proxy"
self.squidGroup = "proxy"
self.sgBinary = "/usr/bin/squidGuard"
self.sgBlacklist = "/var/lib/squidguard/db/bad.destdomainlist"
示例2: setDefault
# 需要导入模块: from mmc.support.config import PluginConfig [as 别名]
# 或者: from mmc.support.config.PluginConfig import setDefault [as 别名]
def setDefault(self):
PluginConfig.setDefault(self)
self.authmethod = "baseldap"
self.provmethod = None
self.computersmethod = "none"
self.passwordscheme = "ssha"
self.auditmethod = "none"
示例3: setDefault
# 需要导入模块: from mmc.support.config import PluginConfig [as 别名]
# 或者: from mmc.support.config.PluginConfig import setDefault [as 别名]
def setDefault(self):
"""
Set good default for the module if a parameter is missing the
configuration file.
This function is called in the class constructor, so what you
set here will be overwritten by the readConf method.
"""
PluginConfig.setDefault(self)
示例4: setDefault
# 需要导入模块: from mmc.support.config import PluginConfig [as 别名]
# 或者: from mmc.support.config.PluginConfig import setDefault [as 别名]
def setDefault(self):
"""
Set default values
"""
PluginConfig.setDefault(self)
self.dbsslenable = False
self.dbpoolrecycle = 60
self.dbpoolsize = 5
示例5: setDefault
# 需要导入模块: from mmc.support.config import PluginConfig [as 别名]
# 或者: from mmc.support.config.PluginConfig import setDefault [as 别名]
def setDefault(self):
PluginConfig.setDefault(self)
self.pid_path = "/var/run/pulse2/ssh_support"
self.ssh_path = "/usr/bin/ssh"
self.support_url = "rssh.mandriva.com"
self.support_user = "support"
self.identify_file = "/etc/mmc/plugins/support/id_rsa"
self.check_pid_delay = 2
self.session_timeout = 7200
self.license_server_url = "https://serviceplace.mandriva.com/api/v1/support"
self.install_id_path = "/etc/pulse-licensing/installation_id"
self.install_uuid = None
self.cron_search_for_updates = "0 6 * * *"
self.license_tmp_file = "/var/lib/mmc/pulse_license_info"
self.country = "FR"
示例6: setDefault
# 需要导入模块: from mmc.support.config import PluginConfig [as 别名]
# 或者: from mmc.support.config.PluginConfig import setDefault [as 别名]
def setDefault(self):
PluginConfig.setDefault(self)
self.dnsReader = None
self.dnsReaderPassword = None
示例7: setDefault
# 需要导入模块: from mmc.support.config import PluginConfig [as 别名]
# 或者: from mmc.support.config.PluginConfig import setDefault [as 别名]
def setDefault(self):
PluginConfig.setDefault(self)
self.diskquotaenable = True
self.networkquotaenable = False
示例8: setDefault
# 需要导入模块: from mmc.support.config import PluginConfig [as 别名]
# 或者: from mmc.support.config.PluginConfig import setDefault [as 别名]
def setDefault(self):
PluginConfig.setDefault(self)
self.samba_conf_file = '/etc/samba/smb.conf'
self.samba_init_script = '/etc/init.d/samba'
self.av_so = "/usr/lib/samba/vfs/vscan-clamav.so"