Changeset 5281

Show
Ignore:
Timestamp:
08/28/08 01:20:20 (4 months ago)
Author:
mramm
Message:

Allow partial dict matches for all bunches with dotted keys.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/tg/configuration.py

    r5279 r5281  
    111111            return self[name] 
    112112        except KeyError: 
     113            return get_partial_dict(name, self) 
     114            #if both getitem, and partial-dict matches fail we're done 
    113115            raise AttributeError(name) 
    114116 
     
    256258            object 
    257259            """ 
    258  
     260            global_conf=Bunch(global_conf) 
     261            app_conf=Bunch(app_conf) 
    259262            self.setup_paths() 
    260263            self.init_config(global_conf, app_conf)