[Zope3-checkins] CVS: Zope3/src/zope/app/interfaces/xml - representable.py:1.1
Philipp von Weitershausen
philikon@philikon.de
Wed, 9 Apr 2003 16:51:32 -0400
Update of /cvs-repository/Zope3/src/zope/app/interfaces/xml
In directory cvs.zope.org:/tmp/cvs-serv3948/interfaces/xml
Added Files:
representable.py
Log Message:
* introduced IXMLRepresentable interface for objects representing xml.
* introduced a new ZCML directive to register XML Schemas as interfaces
by specifying their URI.
* changed the way interfaces are resolved in all configuration directives
and some other places. Thus, you can now also specify the URI of an
XML schema instead of a dotted interface name everywhere you are required
to specify an interface name.
=== Added File Zope3/src/zope/app/interfaces/xml/representable.py ===
##############################################################################
#
# Copyright (c) 2003 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (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.
#
##############################################################################
"""
$Id: representable.py,v 1.1 2003/04/09 20:51:31 philikon Exp $
"""
from zope.interface import Interface, Attribute
class IXMLRepresentable(Interface):
"""
This object can be adapted to one form of XML data representation
"""
class IXMLText(IXMLRepresentable):
"""
This object represents XML data as text.
"""
source = Attribute("XML text source")