MCPcopy Create free account
hub / github.com/datapane/datapane / get_dom

Method get_dom

python-client/src/datapane/view/view_blocks.py:56–65  ·  view source on GitHub ↗

Return the Document structure for the View

(self)

Source from the content-addressed store, hash-verified

54 return cls(blocks=app_template.blocks)
55
56 def get_dom(self) -> ElementT:
57 """Return the Document structure for the View"""
58 # internal debugging method
59 from datapane.processors.file_store import DummyFileEntry, FileStore
60
61 from .xml_visitor import XMLBuilder
62
63 builder = XMLBuilder(FileStore(DummyFileEntry))
64 self.accept(builder)
65 return builder.get_root()
66
67 def get_dom_str(self) -> str:
68 dom = self.get_dom()

Callers 2

get_dom_strMethod · 0.95
test_gen_view_primitivesFunction · 0.80

Calls 4

get_rootMethod · 0.95
FileStoreClass · 0.90
XMLBuilderClass · 0.85
acceptMethod · 0.80

Tested by 1

test_gen_view_primitivesFunction · 0.64