def findCGIHandler(self, httpd, ext): for handler in pConfig.getNodes("cgihandler.handler"): for ext in pConfig.getValues(pConfig.getNodes("ext", handler)): if httpd.path.endswith(ext): # return path to the interpreter return pConfig.getValue("int", handler) # no handler was found return None
def findCGIHandler(self, httpd, ext): for handler in pConfig.getNodes("cgihandler.handler"): for ext in pConfig.getValues(pConfig.getNodes("ext", handler)): if httpd.path.endswith(ext): # return path to the interpreter return pConfig.getValue("int" ,handler) # no handler was found return None
def __init__(self): # read the directory indexes from the config file self.indexes = pConfig.getValues(pConfig.getNodes("dirindex.index"))
def __loadModuleNames(self): """ Loads the module names from the config file. """ for mod in pConfig.getValues(pConfig.getNodes("base.module")): self.modNames.append(mod.strip())
def __init__(self): self.aliases = {} for alias in pConfig.getNodes("aliases.alias"): key, val = [pConfig.getValue("source", alias), pConfig.getValue("target", alias)] self.aliases[key] = val