def __callpluging(self, sVar, sTitle, sIcon): oGui = cGui() oPluginHandler = cSiteHandler() aPlugins = oPluginHandler.getAvailablePlugins(sVar) for aPlugin in aPlugins: try: #exec "import "+aPlugin[1] #exec "sSiteUrl = "+aPlugin[1]+"."+sVar oOutputParameterHandler = cOutputParameterHandler() oOutputParameterHandler.addParameter('siteUrl', aPlugin[0]) oGui.addDir(aPlugin[2], aPlugin[3], sTitle+' - [COLOR azure]'+aPlugin[1]+'[/COLOR]', sIcon, oOutputParameterHandler) except: pass oGui.setEndOfDirectory()
def __callpluging(self, sVar, sColor, sIcon): oGui = cGui() oPluginHandler = cSiteHandler() aPlugins = oPluginHandler.getAvailablePlugins(sVar) for aPlugin in aPlugins: try: #exec "import "+aPlugin[1] #exec "sSiteUrl = "+aPlugin[1]+"."+sVar oOutputParameterHandler = cOutputParameterHandler() oOutputParameterHandler.addParameter('siteUrl', aPlugin[0]) icon = 'sayfalar/%s.png' % (aPlugin[2]) oGui.addDir(aPlugin[2], aPlugin[3], '[COLOR ' + sColor + ']' + aPlugin[1] + '[/COLOR]', icon, oOutputParameterHandler) except: pass oGui.setEndOfDirectory()
def callpluging(self): oGui = cGui() oInputParameterHandler = cInputParameterHandler() sSiteUrl = oInputParameterHandler.getValue('siteUrl') oPluginHandler = cSiteHandler() aPlugins = oPluginHandler.getAvailablePlugins(sSiteUrl) for aPlugin in aPlugins: try: #exec "import " + aPlugin[1] #exec "sSiteUrl = " + aPlugin[1] + "." + sVar oOutputParameterHandler = cOutputParameterHandler() oOutputParameterHandler.addParameter('siteUrl', aPlugin[0]) icon = 'sites/%s.png' % (aPlugin[2]) oGui.addDir(aPlugin[2], aPlugin[3], aPlugin[1], icon, oOutputParameterHandler) except: pass oGui.setEndOfDirectory()