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

Changeset 1293

Show
Ignore:
Timestamp:
08/28/06 18:21:53
Author:
fumanchu
Message:

Oops. Forgot the namespaces for cherrypy.tree.

Files:

Legend:

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

    r1285 r1293  
    2323        self.root = root 
    2424        self.script_name = script_name 
     25        self.namespaces = {"log": lambda k, v: setattr(self.log, k, v), 
     26                           } 
    2527        self.conf = {} 
    2628        if conf: 
     
    4648            atoms = k.split(".", 1) 
    4749            namespace = atoms[0] 
    48             if namespace == "log"
    49                 setattr(self.log, atoms[1], v) 
     50            if namespace in self.namespaces
     51                self.namespaces[namespace](atoms[1], v) 
    5052     
    5153    def guess_abs_path(self): 

Hosted by WebFaction

Log in as guest/cpguest to create tickets