/[opental]/opental/pax/paxtransform.py
ViewVC logotype

Diff of /opental/pax/paxtransform.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.22 by lalo, Thu Sep 12 00:00:57 2002 UTC revision 1.23 by lalo, Mon Jan 27 07:10:54 2003 UTC
# Line 3  Line 3 
3  # this file is placed on public domain  # this file is placed on public domain
4    
5  from backwards_compatibility import *  from backwards_compatibility import *
6  from utils import pack_list  from utils import pack_list, XML
7    from core import Literal
8  import types  import types
9    
10  class StopTransform(Exception):  class StopTransform(Exception):
# Line 105  class Engine(object): Line 106  class Engine(object):
106              element = pp(element, context)              element = pp(element, context)
107          return element          return element
108    
109    class RenderingEngine(Engine):
110        "Transforms something, and renders it to XML"
111        def postprocess(self, element, context):
112            element = Engine.postprocess(self, element, context)
113            return Literal(XML(element, context.root_xmlns_map, context.encoding))
114    
115    
116  class AttributeHandler(object):  class AttributeHandler(object):
117      "Handler that handles each attribute in turn"      "Handler that handles each attribute in turn"

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26