def __getattr__(self, name):
        try:
            return self.instance.metadata.get(metadata_type__name=name).value
        except __HOLE__:
            raise AttributeError(
                _('\'metadata\' object has no attribute \'%s\'') % name
            )
dataset/ETHPy150Open mayan-edms/mayan-edms/mayan/apps/metadata/classes.py/DocumentMetadataHelper.__getattr__