示例#1
0
 def testGetPluginList(self):
     print 'Before testGetPluginList {0}'.format(os.getcwd())
     os.chdir('../')
     pluginsList = getPluginList()
     _, dirs, _ = os.walk('plugins').next()
     os.chdir('tst/')
     self.assertEquals(dirs, pluginsList)
示例#2
0
def initApp(api):
    homeDir = os.getcwd()
    if homeDir.find('/var/www') != -1:
        homeDir = '/var/www/geomongo/'
        os.chdir(homeDir)
    else:
        if homeDir.find('src/tst') != -1:
            os.chdir('..')
    pluginList = getPluginList()
    for pluginName in pluginList:
        if getPluginState(pluginName) is True and \
                checkConfigPlugin(pluginName) is True:
            enablePlugin(api, pluginName)
    os.chdir(homeDir)
示例#3
0
def initApp(api):
    homeDir = os.getcwd()
    if homeDir.find('/var/www') != -1:
        homeDir = '/var/www/geomongo/'
        os.chdir(homeDir)
    else:
        if homeDir.find('src/tst') != -1:
            os.chdir('..')
    pluginList = getPluginList()
    for pluginName in pluginList:
        if getPluginState(pluginName) is True and \
                checkConfigPlugin(pluginName) is True:
            enablePlugin(api, pluginName)
    os.chdir(homeDir)
示例#4
0
 def get(self):
     list_plugins = getPluginList()
     result = {}
     for plugin in list_plugins:
         result.update({plugin: getPluginInfo(plugin)})
     return result
示例#5
0
 def get(self):
     list_plugins = getPluginList()
     result = {}
     for plugin in list_plugins:
         result.update({plugin: getPluginInfo(plugin)})
     return result