本文整理汇总了Python中BaseLib.Core.SessionConfig.SessionConfigInterface.set_proxyservice_status方法的典型用法代码示例。如果您正苦于以下问题:Python SessionConfigInterface.set_proxyservice_status方法的具体用法?Python SessionConfigInterface.set_proxyservice_status怎么用?Python SessionConfigInterface.set_proxyservice_status使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类BaseLib.Core.SessionConfig.SessionConfigInterface
的用法示例。
在下文中一共展示了SessionConfigInterface.set_proxyservice_status方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: set_proxyservice_status
# 需要导入模块: from BaseLib.Core.SessionConfig import SessionConfigInterface [as 别名]
# 或者: from BaseLib.Core.SessionConfig.SessionConfigInterface import set_proxyservice_status [as 别名]
def set_proxyservice_status(self,value):
""" Set the status of the proxyservice (on or off).
ProxyService off means the current node could not be used as a proxy. ProxyService on means other nodes will be able to use it as a proxy.
@param value: one of the possible two values: PROXYSERVICE_OFF, PROXYSERVICE_ON
"""
self.sesslock.acquire()
try:
SessionConfigInterface.set_proxyservice_status(self, value)
finally:
self.sesslock.release()