本文整理汇总了Python中plugins.Plugin类的典型用法代码示例。如果您正苦于以下问题:Python Plugin类的具体用法?Python Plugin怎么用?Python Plugin使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Plugin类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
def __init__(self):
Plugin.__init__(self)
self.__shell = None
self.bin_path = None
self.__crgMap = None
self.applicationOsh = None
self.cmdlets_prefix = ""
示例2: __init__
def __init__(self):
Plugin.__init__(self)
self.__client = None
self.__process = None
self.__isWinOs = None
self.__path = None
self.__configFileName = 'ias.properties'
示例3: __init__
def __init__(self):
Plugin.__init__(self)
self.__client = None
self.__process = None
self.__isWinOs = None
self.__cmd = None
self.__listenerStatus = None
示例4: __init__
def __init__(self, *args, **kwargs):
Plugin.__init__(self, *args, **kwargs)
self.url = ('http://hd{}.freebox.fr/pub/'
'remote_control?code={}&key={{}}').format(
self.conf('boxnumber'),
self.conf('remotecode')
)
示例5: __init__
def __init__(self):
Plugin.__init__(self)
self.__shell = None
self.ftCli_bin_path = None
self.fsSeparator = None
self.ftCli_executePath = None
self.ftCli_name = None
self.domainName = None
示例6: reload
def reload(self, name='all'):
'''Reloads the specified plugin. Example: !reload dice'''
try:
if name == 'all':
for module in Plugin.library:
Plugin.reload(module)
else:
Plugin.reload(name)
except KeyError:
return 'No such plugin is currently loaded. Try !load {0}'.format(name)
示例7: __init__
def __init__(self, *args, **kwargs):
Plugin.__init__(self, *args, **kwargs)
lircrc = tempfile.NamedTemporaryFile('w', delete=False)
self.lircrc = lircrc.name
for key, value in self.allconf():
lircrc.write(
'begin\n'
' prog = mediacontroller\n'
' button = {}\n'
' config = {}\n'
'end\n'.format(key, value)
)
lircrc.close()
示例8: __init__
def __init__(self):
Plugin.__init__(self)
self.version = None
self.supportRouting = None
self.msgStorageLimit = None
self.jStorageLimit = None
self.applicationOsh = None
self.client = None
self.context = None
self.domainParamsList = None
self.msmqParamsList = None
self.domainFqdn = None
self.installationType = None
self.isTriggersEnabled = None
self.msmqInstallParams = None
示例9: __init__
def __init__(self):
Plugin.__init__(self)
self.allowedProcesses = []
示例10: __init__
def __init__(self):
Plugin.__init__(self)
self.__client = None
self.__cmd = None
self.__applicationOsh = None
示例11: __init__
def __init__(self):
Plugin.__init__(self, "table")
示例12: __init__
def __init__(self):
Plugin.__init__(self)
self.__client = None
self.__allowedProcesses = ['siebsvc.exe', 'siebmtsh.exe', 'siebproc.exe', 'siebsess.exe', 'siebsh.exe']
示例13: startFactory
def startFactory(self):
for plugin in settings.PLUGINS:
Plugin.load(plugin)
protocol.ClientFactory.startFactory(self)
示例14: load
def load(self, name):
'''Loads the specified plugin. Example: !load dice'''
try:
Plugin.load(name)
except ImportError:
return 'No such plugin.'
示例15: unload
def unload(self, name):
'''Unloads the specified plugin. Example: !unload dice'''
Plugin.unload(name)