Exemplo n.º 1
0
 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
Exemplo n.º 2
0
	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
Exemplo n.º 3
0
	def __init__(self):
		# read the directory indexes from the config file
		self.indexes = pConfig.getValues(pConfig.getNodes("dirindex.index"))
Exemplo n.º 4
0
	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())
Exemplo n.º 5
0
 def __init__(self):
     # read the directory indexes from the config file
     self.indexes = pConfig.getValues(pConfig.getNodes("dirindex.index"))
Exemplo n.º 6
0
	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