Source

# -*- coding: utf-8 -*-fromdjango.utils.translationimportugettextas_defget_all():return[]classUserAlertError(Exception):passdefadd(path):importosifnotpath:raiseUserAlertError(_(u'Repository path can not be empty.'))ifnotos.path.exists(path):raiseUserAlertError(_(u'Path %(path)s does not exist.')%dict(path=path))