# Path: yithlibraryserver/compat.py
# PY3 = sys.version_info[0] == 3
#     def encode_header(obj):  # pragma: no cover
#     def encode_header(obj):  # pragma: no cover
# 
# Path: yithlibraryserver/i18n.py
# def deform_translator(term):
# def locale_negotiator(request):


import colander
from deform.widget import TextAreaWidget, TextInputWidget
from yithlibraryserver.compat import string_types
from yithlibraryserver.i18n import TranslationString as _
        colander.Boolean(),
        title=_('Production ready'),
        missing=False,
        )
    image_url = colander.SchemaNode(
        colander.String(),
        title=_('Image URL'),
        missing='',
        widget=TextInputWidget(css_class='input-xlarge'),
        )
    description = colander.SchemaNode(
        colander.String(),
        title=_('Description'),
        missing='',
        widget=TextAreaWidget(css_class='input-xlarge'),
        )


class ReadOnlyTextInputWidget(TextInputWidget):

    def serialize(self, field, cstruct, readonly=False):
        return super(ReadOnlyTextInputWidget, self).serialize(field,
                                                              cstruct=cstruct,
                                                              readonly=True)


class FullApplicationSchema(ApplicationSchema):

    client_id = colander.SchemaNode(
        colander.String(),

# Path: yithlibraryserver/compat.py
# PY3 = sys.version_info[0] == 3
#     def encode_header(obj):  # pragma: no cover
#     def encode_header(obj):  # pragma: no cover
# 
# Path: yithlibraryserver/i18n.py
# def deform_translator(term):
# def locale_negotiator(request):


# Path: yithlibraryserver/oauth2/schemas.py
import colander
from deform.widget import TextAreaWidget, TextInputWidget
from yithlibraryserver.compat import string_types
from yithlibraryserver.i18n import TranslationString as _

        colander.Boolean(),
        title=_('Production ready'),
        missing=False,
        )
    image_url = colander.SchemaNode(
        colander.String(),
        title=_('Image URL'),
        missing='',
        widget=TextInputWidget(css_class='input-xlarge'),
        )
    description = colander.SchemaNode(
        colander.String(),
        title=_('Description'),
        missing='',
        widget=TextAreaWidget(css_class='input-xlarge'),
        )


class ReadOnlyTextInputWidget(TextInputWidget):

    def serialize(self, field, cstruct, readonly=False):
        return super(ReadOnlyTextInputWidget, self).serialize(field,
                                                              cstruct=cstruct,
                                                              readonly=True)


class FullApplicationSchema(ApplicationSchema):

    client_id = colander.SchemaNode(
        colander.String(),

        title=_('Client Id'),