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

Changeset 1887

Show
Ignore:
Timestamp:
02/05/08 00:27:29
Author:
fumanchu
Message:

First crack at a cherrypy daemon script. Lots of extension work to do, yet.

Files:

Legend:

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

    r1882 r1887  
    289289 
    290290 
    291 # Backward compatibility handler for the "engine" namespace. 
    292291def _engine_namespace_handler(k, v): 
     292    """Backward compatibility handler for the "engine" namespace.""" 
    293293    engine = cherrypy.engine 
    294294    if k == 'autoreload_on': 
     
    312312 
    313313 
     314def _tree_namespace_handler(k, v): 
     315    """Namespace handler for the 'tree' config namespace.""" 
     316    cherrypy.tree.graft(v, v.script_name) 
     317    cherrypy.engine.log("Mounted: %s on %s" % (v, v.script_name)) 
     318Config.namespaces["tree"] = _tree_namespace_handler 
     319 
     320 
    314321class _Parser(ConfigParser.ConfigParser): 
    315322    """Sub-class of ConfigParser that keeps the case of options and that raises 

Hosted by WebFaction

Log in as guest/cpguest to create tickets