'Yields the value of the bound function with the given name (e.g., app.db).'

def __getattr__(self, k):

    if (k in self.__dict__):
        return self.__dict__[k]
    if (k in g):
        return g[k]
    raise AttributeError(("'%s'    object    has    no    attribute    '%s'" % (self.__class__.__name__, k)))
