[Zope3-checkins] CVS: zopeproducts/xml/interfaces/dom - printer.py:1.1

Philipp von Weitershausen philikon@philikon.de
Fri, 20 Jun 2003 19:40:43 -0400


Update of /cvs-repository/zopeproducts/xml/interfaces/dom
In directory cvs.zope.org:/tmp/cvs-serv13468/interfaces/dom

Added Files:
	printer.py 
Log Message:
Ported ParsedXML's PrettyPrinter over, now with interface and unit tests of
course.


=== Added File zopeproducts/xml/interfaces/dom/printer.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.
#
##############################################################################
"""
DOM XML printer

$Id: printer.py,v 1.1 2003/06/20 23:40:40 philikon Exp $
"""

from zope.interface import Interface

class IPrinter(Interface):
    """
    DOM printer interface
    """

    def render(stream, node):
        """
        Render a node (and all of its child nodes) to file-handle like
        object stream.
        """