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


Python plugins.StandardPlugin类代码示例

本文整理汇总了Python中provd.plugins.StandardPlugin的典型用法代码示例。如果您正苦于以下问题:Python StandardPlugin类的具体用法?Python StandardPlugin怎么用?Python StandardPlugin使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


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

示例1: __init__

 def __init__(self, app, plugin_dir, gen_cfg, spec_cfg):
     StandardPlugin.__init__(self, app, plugin_dir, gen_cfg, spec_cfg)
     
     self._tpl_helper = TemplatePluginHelper(plugin_dir)
     
     root_resource = Resource()
     root_resource.putChild('jitsi', JitsiHTTPService(self._tftpboot_dir))
     self.http_service = root_resource
开发者ID:Eyepea,项目名称:xivo-skaro,代码行数:8,代码来源:entry.py

示例2: __init__

    def __init__(self, app, plugin_dir, gen_cfg, spec_cfg):
        StandardPlugin.__init__(self, app, plugin_dir, gen_cfg, spec_cfg)

        self._tpl_helper = TemplatePluginHelper(plugin_dir)

        downloaders = FetchfwPluginHelper.new_downloaders(gen_cfg.get("proxies"))
        fetchfw_helper = FetchfwPluginHelper(plugin_dir, downloaders)

        self.services = fetchfw_helper.services()
        self.tftp_service = TFTPFileService(self._tftpboot_dir)
开发者ID:Elektordi,项目名称:xivo-provd-plugins,代码行数:10,代码来源:common.py

示例3: __init__

    def __init__(self, app, plugin_dir, gen_cfg, spec_cfg):
        StandardPlugin.__init__(self, app, plugin_dir, gen_cfg, spec_cfg)

        self._tpl_helper = TemplatePluginHelper(plugin_dir)
        self._digium_dir = os.path.join(self._tftpboot_dir, 'Digium')

        downloaders = FetchfwPluginHelper.new_downloaders(gen_cfg.get('proxies'))
        fetchfw_helper = FetchfwPluginHelper(plugin_dir, downloaders)

        self.services = fetchfw_helper.services()
        self.http_service = HTTPNoListingFileService(self._tftpboot_dir)
开发者ID:Elektordi,项目名称:xivo-provd-plugins,代码行数:11,代码来源:common.py

示例4: __init__

    def __init__(self, app, plugin_dir, gen_cfg, spec_cfg):
        StandardPlugin.__init__(self, app, plugin_dir, gen_cfg, spec_cfg)
        self._app = app
        self._cache_dir = os.path.join(plugin_dir, 'var', 'cache')

        self._tpl_helper = TemplatePluginHelper(plugin_dir)

        downloaders = FetchfwPluginHelper.new_downloaders(gen_cfg.get('proxies'))
        fetchfw_helper = FetchfwPluginHelper(plugin_dir, downloaders)

        self.services = fetchfw_helper.services()
        self.http_service = BaseCiscoHTTPHookService(HTTPNoListingFileService(self._tftpboot_dir), self)
        self.tftp_service = TFTPFileService(self._tftpboot_dir)
开发者ID:Eyepea,项目名称:xivo-skaro,代码行数:13,代码来源:common.py

示例5: __init__

    def __init__(self, app, plugin_dir, gen_cfg, spec_cfg):
        StandardPlugin.__init__(self, app, plugin_dir, gen_cfg, spec_cfg)

        self._tpl_helper = TemplatePluginHelper(plugin_dir)

        downloaders = FetchfwPluginHelper.new_downloaders(gen_cfg.get('proxies'))
        if 'cisco' not in downloaders:
            logger.warning('cisco downloader not found (xivo is probably not up to date); not loading plugin packages')
        else:
            fetchfw_helper = FetchfwPluginHelper(plugin_dir, downloaders)
            self.services = fetchfw_helper.services()

        self.http_service = HTTPNoListingFileService(self._tftpboot_dir)
        self.tftp_service = TFTPFileService(self._tftpboot_dir)
开发者ID:DamienB505,项目名称:xivo-provd-plugins,代码行数:14,代码来源:common.py

示例6: __init__

    def __init__(self, app, plugin_dir, gen_cfg, spec_cfg):
        StandardPlugin.__init__(self, app, plugin_dir, gen_cfg, spec_cfg)
        # update to use the non-standard tftpboot directory
        self._base_tftpboot_dir = self._tftpboot_dir
        self._tftpboot_dir = os.path.join(self._tftpboot_dir, 'Aastra')

        self._tpl_helper = TemplatePluginHelper(plugin_dir)

        downloaders = FetchfwPluginHelper.new_downloaders(gen_cfg.get('proxies'))
        fetchfw_helper = FetchfwPluginHelper(plugin_dir, downloaders)
        # update to use the non-standard tftpboot directory
        fetchfw_helper.root_dir = self._tftpboot_dir

        self.services = fetchfw_helper.services()
        self.http_service = HTTPNoListingFileService(self._base_tftpboot_dir)
开发者ID:DamienB505,项目名称:xivo-provd-plugins,代码行数:15,代码来源:common.py

示例7: __init__

 def __init__(self, app, plugin_dir, gen_cfg, spec_cfg):
     StandardPlugin.__init__(self, app, plugin_dir, gen_cfg, spec_cfg)
     
     self._tpl_helper = TemplatePluginHelper(plugin_dir)
     
     downloaders = FetchfwPluginHelper.new_downloaders(gen_cfg.get('proxies'))
     fetchfw_helper = FetchfwPluginHelper(plugin_dir, downloaders)
     
     cfg_service = ZenitelConfigureService(downloaders['auth'],
                                           spec_cfg.get('username'),
                                           spec_cfg.get('password'))
     persister = JsonConfigPersister(os.path.join(self._plugin_dir, 'var',
                                                  'config.json'))
     cfg_service = PersistentConfigureServiceDecorator(cfg_service, persister)
     
     self.services = {'configure': cfg_service,
                      'install': fetchfw_helper}
     self.tftp_service = TFTPFileService(self._tftpboot_dir)
开发者ID:Eyepea,项目名称:xivo-skaro,代码行数:18,代码来源:common.py

示例8: __init__

 def __init__(self, app, plugin_dir, gen_cfg, spec_cfg):
     StandardPlugin.__init__(self, app, plugin_dir, gen_cfg, spec_cfg)
     
     self._tpl_helper = TemplatePluginHelper(plugin_dir)
     
     handlers = FetchfwPluginHelper.new_handlers(gen_cfg.get('proxies'))
     downloaders = FetchfwPluginHelper.new_downloaders_from_handlers(handlers)
     cisco_dler = common['CiscoDownloader'](handlers)
     downloaders['x-cisco'] = cisco_dler
     fetchfw_helper = FetchfwPluginHelper(plugin_dir, downloaders)
     
     cfg_service = common['CiscoConfigureService'](cisco_dler, spec_cfg.get('username'),
                                                   spec_cfg.get('password'))
     persister = JsonConfigPersister(os.path.join(self._plugin_dir, 'var',
                                                  'config.json'))
     cfg_service = PersistentConfigureServiceDecorator(cfg_service, persister)
     
     self.services = {'configure': cfg_service,
                      'install': fetchfw_helper}
     self.tftp_service = TFTPFileService(self._tftpboot_dir)
开发者ID:Eyepea,项目名称:xivo-skaro,代码行数:20,代码来源:sipcommon.py

示例9: __init__

 def __init__(self, app, plugin_dir, gen_cfg, spec_cfg):
     StandardPlugin.__init__(self, app, plugin_dir, gen_cfg, spec_cfg)
     self.tftp_service = TFTPFileService(self._tftpboot_dir)
     self.http_service = HTTPNoListingFileService(self._tftpboot_dir)
开发者ID:Eyepea,项目名称:xivo-skaro,代码行数:4,代码来源:entry.py

示例10: __init__

 def __init__(self, app, plugin_dir, gen_cfg, spec_cfg):
     StandardPlugin.__init__(self, app, plugin_dir, gen_cfg, spec_cfg)
     self._app = app
     
     self._tpl_helper = TemplatePluginHelper(plugin_dir)
开发者ID:Eyepea,项目名称:xivo-skaro,代码行数:5,代码来源:common.py


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