Ejemplo n.º 1
0
    def __getattribute__(self, name): #{{{
        if name in dir(object) + ['__get__', '__getitem__']:
            return object.__getattribute__(self, name)
#        mval = object.__getattribute__(self, '_mval')()
        mval = ogetattr(self, '_mval')()
        try:
            return mval.p.transformer(name, mval._mval[name])
        except KeyError:
#            return object.__getattribute__(self, name)
            return ogetattr(self, name)
Ejemplo n.º 2
0
    def __getitem__(self, key): #{{{
#        mval = object.__getattribute__(self, '_mval')()
        mval = ogetattr(self, '_mval')()
        return mval.p.transformer(key, mval._mval[key])