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__ |
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'>' |