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

Diff of /opental/pax/textpaxparser.py

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

revision 1.5 by lalo, Thu Feb 20 10:41:19 2003 UTC revision 1.6 by lalo, Fri Apr 25 16:04:04 2003 UTC
# Line 10  Line 10 
10  # <textarea />, <a />, <select /> etc  # <textarea />, <a />, <select /> etc
11    
12  import core  import core
13    from utils import XML
14  from HTMLParser import HTMLParser  from HTMLParser import HTMLParser
15  from backwards_compatibility import *  from backwards_compatibility import *
16    
# Line 17  class Document(core.Container): Line 18  class Document(core.Container):
18      def __repr__(self):      def __repr__(self):
19          return u'<PAX Document: %s>' % self.children          return u'<PAX Document: %s>' % self.children
20    
21        def __xml__(self, ns_map):
22            return XML(self.children)
23    
24  # get a namespace, if provided  # get a namespace, if provided
25  def split_ns(spec, default=u''):  def split_ns(spec, default=u''):
26      if ':' in spec:      if ':' in spec:

Legend:
Removed from v.1.5  
changed lines
  Added in v.1.6

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