Source

fat-po-editor / fat / fat_po_editor / bl / repository.py

Full commit
# -*- coding: utf-8 -*-

from django.utils.translation import ugettext as _

def get_all():
    return []

class UserAlertError(Exception): pass

def add(path):
    import os
    
    if not path:
        raise UserAlertError(_(u'Repository path can not be empty.'))
    if not os.path.exists(path):
        raise UserAlertError(_(u'Path %(path)s does not exist.') % dict(
                path=path))