def local_property(name):
    def fget(self):
        try:
            return getattr(_lctx, name)
        except __HOLE__:
            raise RuntimeError("Request context not initialized.")
    def fset(self, value): setattr(_lctx, name, value)
    def fdel(self): delattr(_lctx, name)
    return property(fget, fset, fdel,
        'Thread-local property stored in :data:`_lctx.%s`' % name)
dataset/ETHPy150Open adampresley/bottlepy-bootstrap/app/bottle.py/local_property