Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(6)  |  Call(1)  |  Derive(2)  |  Import(3)

src/s/t/statmon-HEAD/statmonHandler.py   statmon(Download)
 
if not __name__ == '__main__':
	from core.baseControllers import SpecialController,setRootPath
 
	import posixpath
	# "should" have been handled before this, but just in case
	try:
		controller = SpecialController(req)
		code = controller.handleRequest()
		if code != None: return code, False # handled by special controller

src/s/t/statmon-HEAD/statmon/statmonControllers.py   statmon(Download)
 
from core.environment import logger,getTempPath
from core.utils import getCurrentUser,getCurrentGroup,StringToBool
from core.standardControllers import StandardController,currentPath
from core.baseControllers import BaseController,BlankController,SpecialController,AlertController,registerController
class ReturnGraph(SpecialController):
	def handleRequest(self):
		Grapher,params = decodeGraph(self.getField('p'))
		if not Grapher:
			return apache.HTTP_INTERNAL_SERVER_ERROR

src/s/t/statmon-HEAD/statmon/miscControllers.py   statmon(Download)
 
from core.baseControllers import SpecialController
 
from mod_python import apache
 
import model
import datetime
import sys
 
class HobitCheckController(SpecialController):