All pastes #825645 Raw Edit

no_mind

public python v1 · immutable
#825645 ·published 2007-12-20 18:45 UTC
rendered paste body
import cherrypyclass CRMRoot:    """class functions"""class Test:    """class functions"""    def index(self):        return "hi"dis = cherrypy.dispatch.RoutesDispatcher()# Add a route to our controllerconfig0 = {'/Services':{       	  'request.dispatch': dis }}dis.connect(name='Test', route="Services",controller=Test())cherrypy.quickstart(CRMRoot(), '/', config=config0)