Ejemplo n.º 1
0
 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
Ejemplo n.º 2
0
    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
Ejemplo n.º 3
0
    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)
Ejemplo n.º 4
0
    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.http_service = HTTPNoListingFileService(self._tftpboot_dir)
Ejemplo n.º 5
0
    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)
Ejemplo n.º 6
0
    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)
Ejemplo n.º 7
0
    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)
Ejemplo n.º 8
0
    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)
Ejemplo n.º 9
0
    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)
Ejemplo n.º 10
0
    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()

        # Maybe find a way to bind to a specific port without changing the general http_port setting of xivo-provd ?
        # At the moment, http_port 6970 must be set in /etc/xivo/provd/provd.conf
        self.http_service = HTTPNoListingFileService(self._tftpboot_dir)

        self.tftp_service = TFTPFileService(self._tftpboot_dir)
Ejemplo n.º 11
0
    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)
Ejemplo n.º 12
0
 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)
Ejemplo n.º 13
0
    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)
Ejemplo n.º 14
0
 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)
Ejemplo n.º 15
0
 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)
Ejemplo n.º 16
0
 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)
Ejemplo n.º 17
0
 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)
Ejemplo n.º 18
0
 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)