def __str__(self):
        trans = None

        try:
            trans = self.translation
        except models.ObjectDoesNotExist:
            pass
        except __HOLE__:
            pass

        if trans:
            trans = '%s' % trans
            if trans.strip():
                return trans
        return os.path.basename(self.file.name)
dataset/ETHPy150Open feincms/feincms/feincms/module/medialibrary/models.py/MediaFileBase.__str__