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