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

Diff of /opental/pax/core.py

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

revision 1.13 by lalo, Thu Nov 14 22:46:07 2002 UTC revision 1.14 by lalo, Mon Jan 27 07:05:12 2003 UTC
# Line 187  class Declaration(object): Line 187  class Declaration(object):
187    
188      def __xml__(self, ns_map):      def __xml__(self, ns_map):
189          return u'<!%s>' % self.text          return u'<!%s>' % self.text
190    
191    # for wrapping a string so that XML() doesn't try to
192    # render it again
193    class Literal(object):
194        def __init__(self, text):
195            self.text = text
196    
197        def __xml__(self, *a):
198            return self.text
199    
200        __str__ = __xml__
201    
202        def __repr__(self):
203            return '<Literal %s>' % repr(self.text)

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

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