def __getitem__(self, key):
        '''
        Check if the key is ttld out, then do the get
        '''
        if self._missing(key):
            raise KeyError(key)

        if key not in self._dict and not self.loaded:
            # load the item
            if self._load(key):
                log.debug('LazyLoaded %s', key)
                return self._dict[key]
            else:
                log.debug('Could not LazyLoad %s: %s', key, self.missing_fun_string(key))
                raise KeyError(key)
        else:
            return self._dict[key]
def __getitem__ ( self , key ) : if self . _missing ( key ) : raise KeyError ( key ) if key not in self . _dict and not self . loaded : if self . _load ( key ) : log . debug ( 'LazyLoaded %s' , key ) return self . _dict [ key ] else : log . debug ( 'Could not LazyLoad %s: %s' , key , self . missing_fun_string ( key ) ) raise KeyError ( key ) else : return self . _dict [ key ]
Check if the key is ttld out, then do the get