Changeset 4876

Show
Ignore:
Timestamp:
07/01/08 17:24:44 (2 months ago)
Author:
percious
Message:

fixed a problem with the config where callables were being called before being returned in a Bunch instance.
This caused tg.ext.repoze.who to fail, because we were passing it a User class, which it was instantiating.

Files:

Legend:

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

    r4783 r4876  
    66 
    77    def __getitem__(self, key): 
    8         item = dict.__getitem__(self, key) 
    9         if callable(item): 
    10             return item() 
    11         return item 
     8        return  dict.__getitem__(self, key) 
    129 
    1310    def __getattr__(self, name):