def __getattr__(self, name):
        if hasattr(self.__dict__, name):
            return getattr(self.__dict__, name)
        elif hasattr(self.element, name):
            return getattr(self.element, name)
        else:
            raise AttributeError, "class Element has no attribute %s" % name
dataset/ETHPy150Open fp7-ofelia/ocf/ofam/src/src/foam/sfa/rspecs/elements/element.py/Element.__getattr__/original