Source code for z3c.schema.baseurl.interfaces

##############################################################################
#
# Copyright (c) 2006 Zope Foundation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.1 (ZPL).  A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
import zope.schema
import zope.schema.interfaces

from z3c.schema.i18n import MessageFactory as _


[docs]class IBaseURL(zope.schema.interfaces.IURI, zope.schema.interfaces.IFromUnicode): """Base URL field. Such a base url must end with a ``/``. This makes it simpler for append a view name. """
[docs]class InvalidBaseURL(zope.schema.ValidationError): __doc__ = _("""The specified base URL is not valid.""")