# Path: yithlibraryserver/i18n.py
# def deform_translator(term):
# def locale_negotiator(request):


import logging
from yithlibraryserver.i18n import TranslationString as _
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Yith Library Server is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Yith Library Server.  If not, see <http://www.gnu.org/licenses/>.



log = logging.getLogger(__name__)


class IdentityProvider(object):

    def __init__(self, name):
        self.name = name

    @property
    def route_path(self):
        return '%s_login' % self.name

    @property
    def image_path(self):
        return 'yithlibraryserver:static/img/%s-logo.png' % self.name


# Path: yithlibraryserver/i18n.py
# def deform_translator(term):
# def locale_negotiator(request):


# Path: yithlibraryserver/user/idp.py
import logging
from yithlibraryserver.i18n import TranslationString as _

# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Yith Library Server is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Yith Library Server.  If not, see <http://www.gnu.org/licenses/>.



log = logging.getLogger(__name__)


class IdentityProvider(object):

    def __init__(self, name):
        self.name = name

    @property
    def route_path(self):
        return '%s_login' % self.name

    @property
    def image_path(self):
        return 'yithlibraryserver:static/img/%s-logo.png' % self.name


    @property