/[opental]/opental/OpenPT/Zpax.py
ViewVC logotype

Diff of /opental/OpenPT/Zpax.py

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

revision 1.3 by lalo, Sun Apr 13 13:03:15 2003 UTC revision 1.4 by lalo, Fri Apr 25 16:04:04 2003 UTC
# Line 22  from pax.textpaxparser import Document a Line 22  from pax.textpaxparser import Document a
22  from Globals import Persistent  from Globals import Persistent
23  import sys  import sys
24    
25    # DANGER! do not import this module in a multi-tasking environment!
26    # (in Zope it's fine because it's imported *before* threads are started)
27  object = Persistent  object = Persistent
28  sys.path.append(__path__)  sys.path.append(__path__)
29  f = core.__file__  f = core.__file__
# Line 33  class Document(Container): Line 35  class Document(Container):
35      def __repr__(self):      def __repr__(self):
36          return u'<OpenPT Document: %s>' % self.children          return u'<OpenPT Document: %s>' % self.children
37    
38        def __xml__(self, ns_map):
39            return XML(self.children)
40    
41  class Broken_HTML_Element(Element):  class Broken_HTML_Element(Element):
42      def __children_xml__(self, prefix, ns_map):      def __children_xml__(self, prefix, ns_map):
43          return u'>' + XML(self.children, ns_map) + u'</' + prefix + self.name + u'>'          return u'>' + XML(self.children, ns_map) + u'</' + prefix + self.name + u'>'

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

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