Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1095

Show
Ignore:
Timestamp:
05/07/06 01:17:20
Author:
fumanchu
Message:

Moved covercp, profiler to tree.mount syntax.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/lib/covercp.py

    r1094 r1095  
    345345     
    346346    import cherrypy 
    347     cherrypy.root = CoverStats(
     347    cherrypy.tree.mount(CoverStats()
    348348    cherrypy.config.update({'server.socket_port': port, 
    349349                            'server.thread_pool': 10, 
  • trunk/cherrypy/lib/profiler.py

    r1094 r1095  
    1818            return "Hello, world!" 
    1919     
    20     cherrypy.root = Root(
     20    cherrypy.tree.mount(Root()
    2121 
    2222 
     
    130130def serve(path=None, port=8080): 
    131131    import cherrypy 
    132     cherrypy.root = Profiler(path
     132    cherrypy.tree.mount(Profiler(path)
    133133    cherrypy.config.update({'server.socket_port': int(port), 
    134134                            'server.thread_pool': 10, 
    135135                            'environment': "production", 
    136                             'session.storageType': "ram", 
    137136                            }) 
    138137    cherrypy.server.start() 

Hosted by WebFaction

Log in as guest/cpguest to create tickets