Did I find the right examples for you? yes no      Crawl my project      Python Jobs

All Samples(10)  |  Call(8)  |  Derive(0)  |  Import(2)
Maps read accesses to obj['key'] to obj.key
and hides all the rest of the obj

src/m/e/mediagoblin-0.6.1/mediagoblin/db/models.py   mediagoblin(Download)
from mediagoblin.db.extratypes import (PathTupleWithSlashes, JSONEncoded,
                                       MutationDict)
from mediagoblin.db.base import Base, DictReadAttrProxy
from mediagoblin.db.mixin import UserMixin, MediaEntryMixin, \
        MediaCommentMixin, CollectionMixin, CollectionItemMixin
    def dict_view(self):
        """A dict like view on this object"""
        return DictReadAttrProxy(self)
 
 
    def dict_view(self):
        """A dict like view on this object"""
        return DictReadAttrProxy(self)
 
 
    def dict_view(self):
        """A dict like view on this object"""
        return DictReadAttrProxy(self)
 
 
    def dict_view(self):
        """A dict like view on this object"""
        return DictReadAttrProxy(self)
 
 

src/j/o/JoshuaGoblin-HEAD/mediagoblin/db/models.py   JoshuaGoblin(Download)
from mediagoblin.db.extratypes import (PathTupleWithSlashes, JSONEncoded,
                                       MutationDict)
from mediagoblin.db.base import Base, DictReadAttrProxy
from mediagoblin.db.mixin import UserMixin, MediaEntryMixin, \
        MediaCommentMixin, CollectionMixin, CollectionItemMixin
    def dict_view(self):
        """A dict like view on this object"""
        return DictReadAttrProxy(self)
 
 
    def dict_view(self):
        """A dict like view on this object"""
        return DictReadAttrProxy(self)
 
 
    def dict_view(self):
        """A dict like view on this object"""
        return DictReadAttrProxy(self)
 
 
    def dict_view(self):
        """A dict like view on this object"""
        return DictReadAttrProxy(self)