/[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.34 by lalo, Fri Apr 25 16:04:04 2003 UTC revision 1.35 by lalo, Fri Apr 25 18:14:09 2003 UTC
# Line 133  class RenderingEngine(Engine): Line 133  class RenderingEngine(Engine):
133    
134      def transform(self, element, context):      def transform(self, element, context):
135          result = Engine.transform(self, element, context)          result = Engine.transform(self, element, context)
136          if hasattr(result, '__xml__'):          if hasattr(result, '__xml__') or type(result) is types.UnicodeType:
137              return XML(result, context.root_xmlns_map, context.encoding)              return XML(result, context.root_xmlns_map, context.encoding)
138          elif type(result) in (types.ListType, types.TupleType):          elif type(result) in (types.ListType, types.TupleType):
139              return self._seq_to_unicode(result, context.encoding)              return self._seq_to_unicode(result, context.encoding)

Legend:
Removed from v.1.34  
changed lines
  Added in v.1.35

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