def config_view(request): pluginList = getINIFolderTemplate("plugins") configPath = "config.ini" INIFileDict = loadINIFileConfig(configPath) iniTemplate = loadINIFileTemplate([configPath] + pluginList) INIFileDict = __fillINIwithTemplate(iniTemplate,INIFileDict) multiListChoices = _makeMultichoice("plugins","pluginlist",getAvailablePluginsList,INIFileDict) return {"layout": site_layout(), "config_sidebar_head" : config_sidebar_head(), "config_sidebar_body" : config_sidebar_body(), "INI_InputArea_head" : INI_InputArea_head(), "INI_InputArea_body" : INI_InputArea_body(), "page_title": "General", "INIFileDict" : INIFileDict, "INIFileTemplate" : iniTemplate, "configPath" : configPath, "multiListChoices" : multiListChoices}
def _loadServerINITemplate(): ''' Get the serverNode template :reurn: Server ini template dict''' return loadINIFileTemplate("serverNodes.ini")
def _loadControllerINITemplate(controllerType): ''' Get the outlet type template :param outletType: The type of the tester :reurn: Tester ini template dict''' return loadINIFileTemplate(['conf_controllers/' + controllerType + '.ini'] + ["controllers.ini"])
def _loadPDUINITemplate(outletType): ''' Get the outlet type template :param outletType: The type of the outlet :reurn: Outlet ini template dict''' return loadINIFileTemplate(['conf_outlets/' + outletType + '.ini'] + ["outlets.ini"])